Category "apollo"

Apollo-Server display errors in a clean mannor

I'm pretty sure that the question is self explanatory. I'm using 'apollo-server-core' 3.6.5 Errors I want to get { "errors": [ { "messa

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

Manually control apollo server cache

Is it possible to manually control the cache in Apollo Server? I want to be able to configure the server to fetch data once, and then forever cache the followin

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

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 {

vue filtering method how it works

Here's the some code i try what I did deleteajobewith_events(event){ const data =event.store.readQuery({ query: ClientJobesList, varia

How to use Apollo/Graphql hooks within external React.js component library

I have 3 React.js projects and I'm trying to consolidate the reused components across all 3 projects into one shared component library. This component library i

GraphQL: unexpected variables in variableValues: first when using no variables in args

My GraphQL Query works just fine in Hasura Client but fails to work when I use the query in my React code using Apollo, I don't understand why because I am not

Next.js: React Apollo Client Not sending cookies?

I'm using Apollo Client as a graphql client on my next.js application, Here is the function that creates a client for me: let client: ApolloClient<any>;

Generate GraphQL schema from TypeScript?

I have just recently started with Apollo and would like to expose some existing REST APIs through a new GraphQL layer. These REST services are already fully (Re

GraphQL: TypeError: Cannot read property of undefined

I have an Apollo GraphQL projects where I have created my own Query and Mutations. I have done using mock data and Query and Mutation works fine. But when I am

Can I create multiple elements of the same type using Strapi and GraphQL?

Can I create multiple elements of the same type using Strapi and GraphQL? For example - createMultipleFoo mutation(data: [ nameOfFoo: "ooaoaoa", weightO

How can I configure Apollo to always ignore its cache and fetch directly from the GraphQL server?

I am developing a React UI that makes use of a GraphQL API I have written (using Hot Chocolate and ASP.NET 6.0). I have just started coding the UI project and a

UnhandledPromiseRejectionWarning: Error: You must `await server.start()` before calling `server.applyMiddleware()` at ApolloServer

I am trying to start my nestJs server and It keeps giving me this error: UnhandledPromiseRejectionWarning: Error: You must await server.start() before calling s

How to generate the Apollo sha256 hash?

I need to generate the sha256 string from a graphql query - without Apollo. Assuming my query looks something like: query Foo { bar { test } bar2 } H

How to pass multiple headers in Apollo GraphQI?

I wanted to know how to pass multiple headers in Apollo GraphQl as i know how to pass single but not multiple headers.Any solutions or suggestions appreciated.T

Why does batching with a dataloader not work in a test?

Problem I am trying to test the performance of the following query: query { classes { teachers { user_id } } } When I start up my server and

RESTDataSource - How to know if response comes from get request or cache

I need to get some data from a REST API in my GraphQL API. For that I'm extending RESTDataSource from apollo-datasource-rest. From what I understood, RESTDataSo

Return ENUM - Cannot return null for non-nullable field

I am using apollo-server-lambda, Prisma ORM and graphql-codegen. I have a query (getBookById) that returns a Book. Book contains an enum called BookStatus. I wa