Category "graphql"

How use Streambuilder in flutter for Hasuragraphql?

Subscription( options: SubscriptionOptions(document: gql(mySubcription)), builder: (result) { // if (result.hasException) { // return Text(result.exception.to

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

Must provide typeDefs when using makeAugmentedSchema

I'm new to Neo4j and GraphQL and more or less new to JavaScript. I want to build a GraphQL endpoint using ApolloServer and Neo4j. The error I don't understand

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 implement offset based pagination for nested collection in HotChocolate GraphQL?

I've been trying to add Offset pagination for a collection inside an entity. I understood that I cannot use the [UseOffsetPaging] attribute directly. So I tried

GraphQL + Springboot + Http Headers

I'm using these graphql dependencies: "com.graphql-java-kickstart:graphql-spring-boot-starter:12.0.0", "com.graphql-java-kickstart:graphql-java-tools:12

Single React JS project with multiple graphql URI Link

Hello I am new to ApolloClient and I don't know to pass multiple URI links as a clint and I have to use those all URI if anyone knows about it give me suggestio

GraphQL - retrieves only maximum 10 items from Strapi

I am using React with Strapi and GrapqQL in order to retreive my data from Strapi. Seems that my query retrieves only maximum 10 items. The API is changed with

GraphQl filter in list field

I'm working on GraphQL API, and I want to filter my data "Products" by sellerId knowing that a product can be sold by several sellers, which means the sellers'

How to seed/upload images in KeystoneJS 6?

Using the example here, if I then add an image field to Post: // schema.ts import { list } from '@keystone-6/core'; import { select, relationship, text, timesta

How to inject a value via middleware into a graphql query body (prisma-typegraphql)?

I am currently using prisma-typegraphql for generating a schema and it's props. Problem: Is there a way to write a middleware that accesses a value from an arbi

HotChocolate (GraphQL) dynamic schemas and filtering

I'm using HotChocolate for our GraphQL server in .NET and CosmosDb as DB, which is a document database. Sorry for a long post... In our Db we will have one part

Some Prisma Model @@map not generating

I have a few models in my schema.prisma file that are not generating with their @@map for use in the client. model ContentFilter { id Int

How to pass dynamic query name to GraphQL?

Is it possible pass query name to GraphQL using props in React? const allEntries = gql` query allProducts{ '${queryName}' { id name

How can I print the schema in HotChocolate as GraphQL SDL

It would be great for development with Relay to print the GraphQL SDL directly with the Hot Chocolate GraphQL server. Is there a way to do this? schema { quer

pass variable into GraphQL query in Gridsome/Vue.js

I have a Vue.js app running with a GraphQL backend, and Gridsome as the Vue.js boilerplate generator. I'm trying to write a GraphQL query to only return the da

How can we fetch blog posts and pages from Shopify Headless in Gatsby with gatsby-source-shopify plugin?

I am planning to migrate my site from Shopify to Shopify Headless + Gatsby but I am having a problem with the plugin, gatsby-source-shopify. It can create nodes

How to trigger graphql useQuery on demand only once?

With the help of graphql-codegenerator we created a graphql useQuery that correctly retrieves data from the backend. When a string is entered into an input fiel

How to get query result from postgraphile running as a library

I have postgraphile running as as express middleware. For example: const pgMiddleware = postgraphile(pool, SCHEMA, postgraphileConfig); app.use(pgMiddleware);

NPM Installation Issues on Ubuntu: Installing Expo-Cli

I ran the command: npm install expo-cli and got these errors. I already upgraded npm on ubuntu. Do I need to install these tools one by one or there's somethin