1 How do I get MaxExecutionDepth to work in Hot Chocolate GraphQL? Here is my code: // Add GraphQL Services services.AddGraphQL( SchemaBuilder.New() // enable for authorization support .AddAuthorizeDirectiveType() .ModifyOptions(o => o.RemoveUnreachableTypes = true) .Create() .MakeExecutable( builder => builder .UseDefaultPipeline() .AddErrorFilter<UseExceptionMessageErrorFilter>() .AddOptions( new QueryExecutionOptions() { MaxExecutionDepth = 15 })) .Schema); I’ve tested with this, even changing […]
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 […]
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 […]
8 I have some legacy code with some singleton classes that register themselves using constructors of global variables. It’s a large codebase, that’s compiled into one executable. I have tried to organize the code base and regroup code into libraries. A minimal example of the current code is main.cpp int main(int argc, char *argv[]) { […]
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) } `; […]
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": […]
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 […]