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 […]
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 […]
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; […]
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, […]
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({ […]
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}`) […]
0 I am new to AWS so any help will be appreciated! In many applications I see a feature which allows a logged in user to generate a shareable link which when clicked by anyone would display the user’s data. I was able to create unique links using the cognito user ID of a logged […]
0 I’m currently facing an issue with my React app where I’m attempting to create a new entry using GraphQL mutation. When I executed the following code in the Strapi GraphQL playground, it worked successfully, and the entry appeared on the Strapi dashboard: mutation{ createComment( data: { userName: "Jane" content: "fdfddf" post: 3 publishedAt: "2023-08-19T06:32:49.783Z" […]