Category "graphql"

graphql syntax error inside schema with mogoose

schema const { gql } = require("apollo-server-express"); export const typeDefs = gql` type User { id: ID! name: String! email: String! password

GraphQL Query after another service updates table returns as Null

Our front end service receives an id from a prior mutation, then will query our schedules table checking events to see if the download (from another service is

Encountered a sub-selection on the query, but the store doesn't have an object reference. angular

I'm getting this error when I try to make some gql query: I have tried to change the angular version, but I need to implement gql in this version. without upgr

Apollo useQuery running twice instead of once when firing multiple queries

in my <Homepage/> component I fetch an authed user and posts using Apollo and useQuery. I can see in my network tab that each one of these queries is runn

graphql mutation giving error while creating record

here is my scheme, I wasnt to create one record so when i am passing field in graphql it is showing error const { BookTC } = require("../model/book"); const { B

apollo explorer say "isTrusted": true when i try use Subscription

guys, I have a problem when I want to use a Subscription I'm facing this issue I don't find a solution in any place, I'm a GQL user and i decide to use Subscrip

Graphql - how to omit tables from the auto-generated graphiql

Im working on postgraphile server. the stack is: nodejs, expressjs, postgraphile and knex. My auto-generated graphiql exposes queries to tables it doesn't need

Hot Chocolate Graph QL.. Extend An Object With Existing Resolvers c#

Is it possible to pass an existing resolver into an Extension of an object method, so I can reuse the resolver? I am getting "Unexpected Execution Error : "No s

Handle many models using graphene in django

In my django project i have many different models which i want to query using GraphQL. For instance: class Country(): name = CharField(max_length=255) clas

How do I call useQuery in a map function?

I have the below react component which is removing products from a mongodb collection based on the items in the cart. I get this error when I run the code: Comp

Interface for DjangoFilterConnectionField

I have two classes class RegisteredUser(graphene.ObjectType): class Meta: interfaces = (BaseClient, ) name = graphene.String() group = graphen

Best approach to implement server-side caching on a Django GraphQL API?

I have an Angular frontend that uses Apollo Graphql client to interface with a Django Graphql backend (using graphene). It all works well, but the API is very s

Calling function in VueApollo after API response

I am using Vue and Apollo and I am making a querie that looks just like the box below. After I get the API response, I would like to call a method from my metho

How can I fetch data from a graphql structure which is in github?

I have a link to this repository ( https://github.com/scandiweb/junior-react-endpoint ). My question is, how can I clone this graphql structure to my react proj

GraphQl federation server that supports subscriptions

I'm currently evaluating different GraphQl servers in order to find one that supports subscriptions on a federated schema. Apollo and HotChocolate don't support

How to configure custom key for data that has composite primary key in @urql/exchange-graphcache cacheExchange

On the frontend I have a Cart, it has buttons to call a GraphQL mutation to increase or decrease the quantity of a product. The mutation worked as expected, exc

How to get data from GraphQL by filtering particular variable?

Below you can see my graphql method. From this, I can get the first data of the database that city is equal to 'London'. But I want to view all the data related

using $match + $sum condition in mongo Aggregation

I have an application running on graphql that queries some data in mongodb. Within the resolver we have some filtering conditions using where : export default {

Strapi v4 too much nested data

I'm rewriting strapi v3 queries to v4 (GraphQL), and with new fields 'data' and 'attributes', I have a problem going too much deep into nested objects, an examp

enhanced subscription filtering connection error when using amplify-cli generated GraphQL mutations

I am using amplify-cli with angular front-end. I have the following schema (schema.graphql): type CardDeck @model @key(name: "byBoard", fields: "boardId", query