Questions

  • C# accessing properties belonging to instance which is of object? (i.e. Nullable) type

    0 Here is info about our technical development environment : • .NET 6 • C# 10 • GraphQL 7.1.1 • GraphQL.Client 5.1.0 • GraphQL.Client.Serializer.Newtonsoft 5.1.0 GraphQLRequest request = new GraphQLRequest { Query = @" mutation FaxReceiverInfo( $_DateCreated: datetime, $_FaxNumber: String, $_FaxRecord: uniqueidentifier, $_Reason: String ) { insert_vw_EmailDeliveryRecordDetail_one ( object: { DateCreated: $_DateCreated, FaxNumber: $_FaxNumber, FaxRecord: […]

  • Benefit of endless-loops without side-effects in C++ being UB compared to C?

    19 In C++ loops as for(;;) {} are UB, whereas they are not in C? In https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2023/p2809r0.html 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 asked 17 hours ago wimalopaanwimalopaan 4,60811 gold badge1919 […]

  • GraphQL Query: Filtering Edges Based on Node ID Matching Article ID

    0 I have a GraphQL query that retrieves articles along with their related stores and associated price data. However, I want to filter the edges in the articlesConnection field to only include edges where the node.id matches the id of the article. Here’s the query I have: query GetAllArticles($options: ArticleOptions) { articles(options: $options) { id […]

  • Writing a GraphQL model that programmatically retrieves relevant Neo4j constraints

    0 I am a seasoned Neo4j user who is new to GraphQL. I have inherited a codebase that explicitly models all Neo4j nodes and relationships as GraphQL objects. I would like to allow GraphQL users to determine what uniqueness constraints, if any, affect any given object. For an individual object, I believe I can deliver […]

  • make graphql mutation return multiple types

    0 i’m working on creating mutations for a project i’m working on but stuck on the resolver returns, i won’t to handle the errors while i’m at it as well by sending back messages for notifications to make it user friendly, but let’s say my mutation is UPDATE_USER and it should also return the updated […]

  • Flutter dataclass for GraphQL response – value can be another class or null

    0 I am currently developing an app in Dart/Flutter and I am facing one issue with my data class to handle my GraphQL response. My User class is defined as following: import ‘package:json_annotation/json_annotation.dart’; import ‘/src/dataclasses/user_address.dart’; import ‘/src/dataclasses/user_birthdate.dart’; import ‘/src/dataclasses/user_legal_guardian.dart’; part ‘user.g.dart’; @JsonSerializable() class User { String? sub; String? email; String? username; List<dynamic>? roles; String? name; […]

  • When when I give my variable name type String! in grafabase query then it says variable is not defined why?

    0 here is my query: export const projectsQuery = ` query getProjects($category: String!, $endcursor: String!) { projectSearch(first: 8, after: $endcursor, filter: {category: {eq: $category}}) { pageInfo { hasNextPage hasPreviousPage startCursor endCursor } edges { node { title githubUrl description liveSiteUrl id image category createdBy { id email name avatarUrl } } } } } `; […]

  • Is an incremental state update a feasible approach?

    0 I wrote a framework called React Server, that mimics React on the serverside. It features a few familiar concepts from React, like components, states, hooks, effects but on the serverside. A serverside component looks the following export const HelloWorldExample2 = () => { // The useState hook looks familiar? const [count, setState] = useState(0, […]

  • How to call sub-field in delegateToSchema

    0 Schema looks like this: type Query { userManagement: UserManagementQueries! } type UserManagementQueries { users(…): UserManagementUsersConnection } … So the query looks like: query { userManagement { users(ids: [123, 456]) } } How can I call this with delegateToSchema where I can only set a fieldName? How do I call a "sub"-field? return info.mergeInfo .delegateToSchema({ […]

  • Unable to connect to the Subscription server even after using graphql-ws

    0 const {ApolloServer, gql} = require(‘apollo-server’); const { sequelize } = require(‘./models/index’) const contextMid = require(‘./util/contextMid’) // The GraphQL schema const typeDefs = require(‘./graphql/typeDefs’) // A map of functions which return data for the schema. const resolvers = require(‘./graphql/resolvers’) const server = new ApolloServer({ typeDefs, resolvers, context: contextMid }); server.listen().then(({url})=>{ console.log(`🚀 Server ready at ${url}`) […]