Questions tagged [graphql]

GraphQL is an API technology designed to describe the complex, nested data dependencies of modern web applications. It is often considered an alternative to SOAP or REST

18,632 questions
0votes
0answers
11views

This GraphQL server doesn’t support tracing. See the following page for instructions: https://github.com/apollographql/apollo-tracing

I am following ben's React GraphQL TypeScript tutorial. I don't know about this error, I am new to GraphQL and getting this error on my login mutation. I have gone through the docs but still no help. ...
0votes
0answers
4views

Gremlin : Get total count of a label and project the count

I am trying to perform a query where I can retrieve all the total count of a label , say 'user' and I have a property known as 'type' having value of label name. Query : g.V().has('type','user')....
0votes
0answers
3views

How to use null safety of data model classes with graphql?

Let's assume we have the following graphql schema: type Query { getPost(id: ID!): Post! getUserProfile(id: ID!): User! } type User { id: ID! name: String! gender: String! dob: Date! } ...
0votes
0answers
9views

Incrementing/decrementing mutation using GraphQL and DynamoDB?

I have a DynamoDB table with a list of comments. I have two columns in the table for likes and dislikes (both integers denoting the number of likes or dislikes each comment has garnered). I recently ...
0votes
0answers
17views

How do you do tracing with graphql subscriptions?

Currently, our system uses OpenCensus for tracing and graphql-java-kickstart for graphql support in the backend. We support tracing for graphql Queries and Mutations. We simply start a Span before a ...
  • 4,916
0votes
0answers
11views

How does Apollo paginated "read" and "merge" work?

I was reading through the docs to learn pagination approaches for Apollo. This is the simple example where they explain the paginated read function: https://www.apollographql.com/docs/react/pagination/...
-1votes
0answers
12views

Can't fetch data from GraphQL API [duplicate]

I'm using Leetcode's GraphQL API to get info about how many questions I solved. But whenever I run my code, I get the following 3 errors: Access to fetch at 'https://leetcode.com/graphql/' from origin ...
0votes
0answers
20views

AWS AppSync chain or nest batch invoke in direct lambda resolvers

👋🏾 I've the next GraphQL schema: type A { field1: [B!] } type B { field2: C } type C { field3: String } type Query { getAll() [A!] } The query getAll get all types A from the ...
0votes
0answers
10views

Creating relationships over two joins with GraphQL in Hasura (i.e. skipping over a nested relationship)

I have a query that resolves what "product" objects a user currently owns. The user has transactions, these transactions are linked to a particular product, and so we resolve the query as ...
1vote
0answers
16views

Cannot return null for non-nullable field, but the field is nullable

I'm trying to create a query which have to return a list of users from my app. The problem is that the users list can be null, as I specified in the returned type for the query: @ObjectType() export ...
0votes
0answers
9views

How do I retrieve file from server with graphene and Django?

How do I retrieve file from server with graphene and Django? I found graphene-file-upload, but it seems to take care of only uploading client's files to the server
0votes
0answers
9views

Fail to use Stepzen admin key

I am using Stepzen for GraphQL queries. I signed up with my GitHub account, ran npm install -g stepzen, then stepzen login, then provided my account name and my admin key but getting this error: Error:...
0votes
1answer
9views

Unable to deserialize list from graphql query using graphql-dotnet/graphql-client

I'm trying to get a list from a simple GraphQl query, using graphql-dotnet/graphql-client in a net core project. This is the code that fires the query: var query = new GraphQLRequest { Query = @&...
0votes
0answers
13views

Unable to create realtions in graphql neo4j

type User { user_name: String Age: Float Drinking: Boolean Nationality: String sex: String Smoking: Boolean Weight: Float sufferingFromDisease: disease @relationship(type: "...
0votes
0answers
7views

apollo graphql server subscription - send only if data differs

So I created a subscription in apollo server. i have my data for that request coming from multiple classes, nested in each other, and this works just fine. But if I would like apollo to only send out ...

153050per page