Tag: graphql
-
Is GraphQL cancelling data fetching in case of a failure?
3 I am trying to understand if (Java) implementation of GraphQL is smart enough to cancel scheduled fetching of data if an exception is thrown during execution of one of the fetchers? An example would be that I run a single query to retrieve all orders for a customer. Let’s say that the customer has…
-
Real-time Message Deletion Subscription Returns Null
0 I am currently working on implementing real-time message deletion in my GraphQL application. I have set up the necessary mutation and subscription resolvers, but I am encountering an issue where the messageDeleted subscription is returning null although message is delete for me but I want this is seen other user on the frontend when…
-
Jest – TypeGraphQL Invalid or Unexpected Token
0 I’m trying to create unit tests on my GraphQL API. This is the test file: import { graphql } from "graphql"; import { createSchema } from "../src/schema"; describe("BlacklistResolver", () => { it("fetches blacklist", async () => { const schema = await createSchema(); const query = ` query GetBlacklist($organisationId: String!) { getBlacklist(organisationId: $organisationId) } `;…
-
Field ‘orders’ doesn’t exist on type ‘QueryRoot’ Shopify
0 I cannot query orders in Shopify with GraphQL for ambiguous reason, I am using Shopify API version 2022-10, this is my query: query { orders(first: 10) { edges { node { id } } } } This is what I get { "errors": [ { "message": "Field ‘orders’ doesn’t exist on type ‘QueryRoot’", "locations":…
-
How can I replace “some” parameter in GRAPHQL query?
0 I’ve the follow query and I wanna get only one result of siteAttributeValues that will be regarding to search in "variables". What can I use instead of some in my query? { "query": "query($search: String!){rn sites(take: 10, where: { siteAttributeValues: { some: { stringValue: { like: $search } } } }){rn items{rn idrn namern…
-
HotChocolate v.13 [UseProjections] attribute does not work with DataLoaders
0 I have the following GrapqhQL query: query { listTenants { totalCount items { tenantId name sites { totalCount items { siteId cmxName cmxState hosts( order: { hostId: ASC } where: { hostName: { neq: "ans" } } skip: 4 take: 2 ) { totalCount items { hostId hostName siteId } } } } }…
-
Generate query for Spring method with @GraphQLQuery
0 I have method: @GraphQLQuery(name = "events", description = "get all events") public List<String> getEvents() { return List.of("test", "test2"); } I need to create query for clients. below example not work: query events{ events{ … String } } what is wrong? spring graphql graphql-java Share Improve this question Follow asked Jun 23 at 13:27 user11149927user11149927…
-
Android Studio Kotlin unresolved reference : products
0 I am using Android Studio Giraffe and mobile buy sdk 16.1.0.when I want to add a query for retrieve first 3 products from shopify it gives unresolved reference : products but all my dependencies and imports are correct should I use something different? val query = Storefront.query { rootQuery: Storefront.QueryRootQuery -> rootQuery.shop { shopQuery:…