Questions

  • Apollo client: mutate is not a function

    2 I am calling this component from a parent component that is passing props thru the argument fields. However When I try to call the mutation function I keep getting the error: mutate is not a function. I dont understand what is causing this issue as I followed the apollo documentation online almost exactly. const […]

  • Use introspection query without authentication in graphql-spring-boot-starter

    5 Using the graphql-spring-boot-starter library https://github.com/graphql-java-kickstart/graphql-spring-boot, is it possible to secure all requests but allow only the graphql introspection query with authentication? The project has enabled Spring security to use OAuth2 so every request is secured. Thanks for any hint or help. spring-boot spring-security graphql graphql-java Share Improve this question Follow asked Nov 13, 2019 […]

  • 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) } `; […]