Questions

  • Hot Chocolate GraphQL – MaxExecutionDepth not working

    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 […]

  • Filter content by typing values in a JSX input element

    0 I am working on a blog project that fetches data form a graphQl api I have a defined a BlogPosts component in which the filter function should be performed export default function Home({posts, categories}) { const [filteredPosts, setFilteredPosts] = useState(posts); const handleSearch = (filtered) => { setFilteredPosts(filtered); }; return ( <Layout categories={categories} onSearch={handleSearch}> <div […]

  • 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 […]

  • update iOS Widget with server data via React Native app

    0 I have an existing React-Native application that queries data from a backend server (via GraphQL) based on the user that is logged into the app. I want to build a Widget Extension for iOS that displays one of the data points "live" (so ~15 min update interval) even when the main app is not […]

  • Why is the constructor of a global variable not called in a library?

    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[]) { […]

  • How to update iOS Widget data with server data via React Native app?

    0 I have an existing React-Native application that queries data from a backend server (via GraphQL) based on the user that is logged into the app. I want to build a Widget Extension for iOS that displays one of the data points "live" (so ~15 min update interval) even when the main app is not […]

  • 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 […]