0 I have an input class that has a single property with "object" object type as shown below: public class FilterParameterValue { public object Value = new object(); } When I start the server, I get the following error: HotChocolate.SchemaException: ‘For more details look at the Errors property. InputObject FilterParameterValueInput has no fields declared. (HotChocolate.Types.InputObjectType<Data.Filter.FilterParameterValue>) […]
0 I have nextjs-nodejs project, where I use apollo-graphql and Prisma, so when I create a user, I should send a session to "getSession" function, which is a mutation, and this mutation uses express-session to save the user info like that: getSession: async ( _: any, args: any, { prisma, session }: GraphqlContext ) => […]
0 I have a simple react app like const [shoe, setShoe] = useState(”) formSubmit = () => { e.preventDefault() const { data } = useQuery<GetShoeDetailsQuery,GetShoeDetailsQueryVariables>(getShoeDetailsQuery, { variables: { name: String(shoe), }, }) console.log(data) } <form onSubmit={formSubmit}> <input type="text" onChange: (e: { target: { value: SetStateAction<string> } }) => { setShoe(e.target.value) }, > <button></button> </form> so […]
0 So I’m trying to figure out how to tell EfCore when to apply an include to an IQueryable object based on whether the GraphQl request from the client actually includes the related object. Example: 2 Classes: Person, Payment Theses are kept in 2 different tables and related Person -> Payment in a one to […]
-1 I have a requiremenet where I need to parse a user input comma separated string, and generate a graphql query out of it. INPUT: queryPath fieldA.fieldB, fieldA.fieldC, fieldA.fieldD.fieldE, fieldA.fieldD.fieldF, fieldA.fieldD.fieldG OUTPUT: query{ queryPath{ fieldA{ fieldB fieldC fieldD{ fieldE fieldF fieldG } } } } I’m using Java to do this, thanks in advance. EDIT: […]
11 I’m facing a problem since this morning with webapps deployed with Apps Script that used to works fine previously. Of course no changes has been made to justify this problem. External scripts are not loaded from the HTML side, and a new error arise in the console. In order to have a reproducible example: […]
0 In the current AWS Amplify React documentation there are no any examples showing how to use these GraphQL queries in React code. Can someone please post an example here. Authentication method needs be the API_KEY. Thanks. query SearchStudentsByEmail { searchStudents(filter: { name: { eq: "Rene Brandel" } }) { items { id name email […]
5 I wanted to make a chat app to practice working with graphql and node, for database I used prisma. I was doing everything like in this tutorial. https://www.howtographql.com/graphql-js/0-introduction/ I just changed variable names. so I have this code const { PrismaClient } = require(‘@prisma/client’) const prisma = new PrismaClient() const resolvers = { Query: […]
0 I just recently added the typescript-resolvers plugin to my codegen config, and while it does what I need, it seems to also add my custom scalars to the ResolversTypes. The issue is that it seems to add an extra [‘output’] property to these scalars. For example; I end up getting an error: Property ‘output’ […]