0 I am using GraphQL in my SpringBoot app. While the CRUD operations are running for single objects, I am facing the issue of Invalid Syntax for nested objects. Please find the code below and suggest. graphql type Book { isn: Int title: String author: String publishedDate: String publisher: Publisher! } input PublisherInput { pId […]
0 I have the following code designed to apply a list of errors to resolved items by fetching the full list of errors from another service which that caches them for performance reasons: public class MyEntityExtensions : ObjectType<MyEntity> { protected override void Configure(IObjectTypeDescriptor<MyEntity> descriptor) { descriptor .Field("errors") .Type(typeof(List<Error>)) .Resolve(async context => { var errorCache = […]
7 I’m trying to follow along this article on how to create a mutation on a rails server using GraphQl https://www.howtographql.com/graphql-ruby/4-authentication However, I’m stuck at the CreateUser Mutation step, I get the follow error hash when trying it out in GraphiQL: { “errors”: [ { “message”: “Field ‘createUser’ is missing required arguments: input”, “locations”: [ […]
0 Currently I’m creating an http link with a relative URI. This works when the server is running locally, and also works when the client and server are hosted remotely: const httpLink = createHttpLink({ uri: ‘/.netlify/functions/foo’, }); const authLink = setContext((_, { headers }) => { const token = process.env.REACT_APP_TOKEN return { headers: { …headers, […]
0 Is there any code example that shows how we can use the Solace pubsub+ as a source and watch for events such as insertion or update at the database at the graphql server level and leverage graphql subscription service ? I came across example with rabbitmq to achieve this but I am looking for […]
0 I use https://github.com/99designs/gqlgen for generating golang code from graphql schema. I need to be able to add gorm tags to the resulting golang types. For that, I declare a directive for custom go tags (in schema.directives.gql): directive @goTag( key: String! value: String ) on INPUT_FIELD_DEFINITION | FIELD_DEFINITION Then I use it the following way […]
0 I want to perform load testing using Postman for GraphQL API. The requirement is that I need to confirm whether the application is able to withstand 200 concurrent requests. But in Postman Canary I am not able to specify 200 concurrent requests. Can any one help on this. graphql postman load-testing web-api-testing Share Improve […]
0 I have quiz api in nestjs, i am using typeORM for saving data, I want to do following transaction: create quiz in quiz table with title and auto generated Id and empty array of questions for each question try to save question in data base with generated quiz_id and questions input save quiz and […]
28 In C++ loops as for(;;) {} are undefined behavior, whereas they are not in C(?). On P2809R0. Trivial infinite loops are not Undefined Behavior, it is expressed that there are good reasons for doing so. Are there any simple examples to make that clear? c++ c loops optimization undefined-behavior Share Improve this question Follow […]
11 I’ve read this Integral promotion: prvalues of small integral types (such as char) may be converted to prvalues of larger integral types (such as int). – first line […details – not important…] Note that all other conversions are not promotions; for example, overload resolution chooses char -> int (promotion) over char -> short (conversion). […]