0 I’m trying to build a simple api with knex and apollo server, which is running, but the querys with where retuns null the server import { ApolloServer } from ‘apollo-server’ import knex from ‘./knex’ import { resolvers, typeDefs } from ‘./schema’ import { UserSQLDataSource } from ‘./schema/users/datasource’ const server = new ApolloServer({ typeDefs, resolvers, […]
0 I use ASP.NET Core to consume GraphQL API and everything working fine, just I need pass the header because I need to use Arabica language and I don’t know how I can pass it. So I need to change language to "ar" when header is passing. [HttpPost] public async Task<IActionResult> Tracking(string code) { var […]
1 I created 2 different methods using GraphQL HotChocolate which return the same object type. I need to hide different fields for each method. However, it does not happen when I look at the schema definition. This is an example for code first approach: public class Query { private readonly CharacterRepository _repository; public Query(CharacterRepository repository) […]
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 […]
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 […]
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 […]