0 I am building an ASP.NET Core Web API with GraphQl, but I am facing issues with JWT token authentication. When the user is logged in I am returning the token, but when I want to create a query or mutation with token provided I see message The current user is not authorized to access […]
0 I am using GraphQL and react on my client side project but I am not using a state management system like Redux I have organised my api calls into custom hook files like below const [getSomeData, { data: getSomeDataData, loading: getSomeDataLoading, error: getSomeDataError }] = useLazyQuery( GET_SOME_DATA2, { client: dataClient, fetchPolicy: "cache-and-network", nextFetchPolicy: "cache-first", […]
0 I was scanning over the graphql docs to find express-graphql deprecated so I decided to implement the recommended graphql-html version: this is my server.js: import { createHandler } from "graphql-http/lib/use/express"; import { buildSchema } from "graphql"; import http from "http"; import fs from "fs"; import path from "path"; const __filename = new URL(import.meta.url).pathname; const […]
0 Newby here with amplify and graphql. I am using amplify v6: https://docs.amplify.aws/react-native/build-a-backend/graphqlapi/data-modeling/ for react native. I was under the impression that graphql would return actual objects within an index, not just the objects id. So I think I have something configured wrong in my schema.graphql since all the queries are generated for me. Or, […]
0 I am trying to executate a mutation called createGroup, when i do it graphQl apolo clients it creates the group in firebase collection successfully but in the react frontend it does not work. When the create button is clicked in the appolo dev tools it shows as mutation started but nothing happens on firebase. […]
12 When attempting to use a trigonometric function in my programming language, I get a seemingly wildly incorrect result. For example, sin(90) = 0.8939966636005579 But I would expect sin(90) to be 1. What is going on and what can I do to fix this? language-agnostic trigonometry Share Follow edited 1 hour ago Bergi 638k149149 gold […]
-1 I am asking ChatGPT for help deep diving into GraphQL query possibilities, as I’m toying around with making a JSON variant of GraphQL for learning purposes. One thing I’m perplexed about and have been for quite some time is how you can support query input arguments/parameters on one node but not on another of […]
0 I am wondering why it’s very hard to update a data inside of apollo client cache, comparing to similar libraries like react-query it’s too complicated For example, When I have a query with pagination (offset and limit) and get an array of items, When I perform a mutation on one item , and from […]