0 Im using symfony 6 and api-platform/core: v3.1.3. Said that, I have an entity that has a method calculable/virtual that I would like to query using graphQL That is the entity <?php #[ ApiResource( operations: [ new Get(), new Put( denormalizationContext: [‘groups’ => [‘update’]], ), new Delete(), new GetCollection(), new Post(), ], normalizationContext: [‘groups’ => […]
6 I am working here with a graphql prisma backend and a graphql yoga express server on top of that. In the frontend, I am trying to call a signout mutation but its blocked by the CORS policy. Though I have added cors settings in my graphql yoga server, I keep getting this error. GraphQL […]
-1 I added one table inside db and generated model with entity framework in asp.net web api(not core) when i try to access that particular end point I am getting this error fast if someone knows this how to solve post your answer I tried this today and expecting an answer asp.net entity-framework graphql Share […]
3 From the Apollo Graphql document, this way can define extension error: https://www.apollographql.com/docs/apollo-server/data/errors/ import { GraphQLError } from ‘graphql’; throw new GraphQLError(‘the error message’, extensions: { code: ‘SOMETHING_BAD_HAPPENED’, https: { status: 404, headers: new Map([ [‘some-header’, ‘it was bad’], [‘another-header’, ‘seriously’], ]), }, }, ); But in my case it got this error: Argument of […]
1 class GraphqlConfig { final serverLink = Link.split( (request) => request.isSubscription, WebSocketLink( "mylink" ), HttpLink("mylink", defaultHeaders: <String, String>{ })); initClient() { ValueNotifier<GraphQLClient> client = ValueNotifier( GraphQLClient( link: serverLink, cache: GraphQLCache(), ), ); return client; } GraphQLClient clientToQuery() { return GraphQLClient( cache: GraphQLCache(), link: serverLink, ); } } I got the following exception DOMException: Failed to […]
Hi there, I have reviewed your domain in MOZ and have observed that you may benefit from an increase in authority. Our solution guarantees you a high-quality domain authority score within a period of three months. This will increase your organic visibility and strengthen your website authority, thus making it stronger against Google updates. Check […]
0 Alright I’ve been completely stuck on this and need huge help quick. What I’m trying to do: My domain: https://example.com (just a placeholder) NextJS App https://localhost:3000 (custom server with express) My GraphQL API https://localhost:3000/api/graphql (custom server with express) The NextJS App and the GraphQL API is on the same NodeJS server. The routes actually […]
0 I would like to use dynamic cache. I was able to set the cache maxAge into the query resolver, but since the resolver can return both an unsuccessful and a successful response I would like to only cache the successful one. In order to do this I would like to set up the info […]
0 I have a very strange behaviour and I need your help. I retrieve a list of content from a GraphQl API that i attach you: client.query({query: PAGES_LIST}).then(res => console.log(res.data.pages) The problem is that the response from the network is that: [ { "id": "ddf", "title": "DDF", "type": "HOME", "draft": false, "newtonId": "64edfc8f3508bb20a9dbef19", "creationDate": "2023-08-29 […]