Questions

  • Getting ‘Module not found ‘ error when running nodeman

    0 I want to run my index.js file to access graphql endpoints so i can be able to query the data, access it but i keep getting the ‘ module not found’ error code. import React from ‘react’; import ReactDOM from ‘react-dom’; import ‘./index.css’; import App from ‘./App.jsx’; import ‘bootstrap/dist/css/bootstrap.css’; import { ApolloClient, InMemoryCache, ApolloProvider […]

  • How to examine and change actions on commercetools updateCart query?

    0 My question is this: Is there a feature or method within graphql that allows editing of incoming queries EASILY so that I can prevent an action from being performed? I would like to examine my query in a web proxy, edit the actions, and then send it on to its destination. Context: I have […]

  • AWS Appsync query with in or not in operator doesn’t exist?

    0 I want to return all items that are not in my arrays. Some think like below but in graphql-aws world: query( collection(db, "users"), where("id", "not-in", […likedUserIds, …dislikedUserIds]) ) I tried: const { data } = await API.graphql( graphqlOperation(getUsers, { filter: { id: { ne: […likedUserIds, …dislikedUserIds]} }, }) ); But this says "Variable ‘ne’ […]

  • Salesforce Graphql query to fetch list view records

    0 I need to fetch the records of a selected list view. I found the uiapi. Anyone knows the related graphql query? https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_list_views_records.htm listview graphql salesforce Share Improve this question Follow asked 56 mins ago keetzkeetz 3199 bronze badges Load 7 more related questions Show fewer related questions 0 Sorted by: Reset to default Highest […]

  • GraphQLError: Query root type must be provided

    37 I’m using NestJS, TypeORM and GraphQL for my backend API. I’m getting the following error: GraphQLError [Object]: Query root type must be provided. at SchemaValidationContext.reportError (/home/wise-introvert/Container/Projects/the-notebook/app/server/node_modules/graphql/type/validate.js:88:19) at validateRootTypes (/home/wise-introvert/Container/Projects/the-notebook/app/server/node_modules/graphql/type/validate.js:107:13) at validateSchema (/home/wise-introvert/Container/Projects/the-notebook/app/server/node_modules/graphql/type/validate.js:52:3) at graphqlImpl (/home/wise-introvert/Container/Projects/the-notebook/app/server/node_modules/graphql/graphql.js:79:62) at /home/wise-introvert/Container/Projects/the-notebook/app/server/node_modules/graphql/graphql.js:28:59 at new Promise (<anonymous>) at Object.graphql (/home/wise-introvert/Container/Projects/the-notebook/app/server/node_modules/graphql/graphql.js:26:10) at GraphQLSchemaFactory.<anonymous> (/home/wise-introvert/Container/Projects/the-notebook/app/server/node_modules/@nestjs/graphql/dist/schema-builder/graphql-schema.factory.js:49:52) at Generator.next (<anonymous>) at /home/wise-introvert/Container/Projects/the-notebook/app/server/node_modules/tslib/tslib.js:114:75 This is […]

  • Apollo server 4 with or without express : standaloneServer vs expressMiddleware

    0 I am new to graphql and I would like to build my first API, using mongoose and MongoDB. So far, I’ve built some API’s using Express, mongoose and MongoDB (in MERN apps). I’d like to use Apollo/server , and I realise there are two options to build a server, using startStandaloneServer , therefore not […]

  • GraphQL throws error of non-nullable field on a nullable field

    0 I’ve the following schema type Employee { id: UUID! createdAt: Time! updatedAt: Time! lastActivity: Activity } type Activity { id: UUID! createdAt: Time! updatedAt: Time! } extend type Query { Myself: Employee! } The lastActivity may or may not be present of course, but when querying it from my client it throws the following […]

  • Attempted to call the default export of C:UsersTeyllayDesktopss.lvfrontendsrcappapollo.ts from the server but it’s on the client

    0 so problem is i want to query user info when entering user page like website/user/1 but when i want enter page i’m getting error, i think it’s from apollo, so is there a way to fix this? what i did wrong? apollo.ts: "use client"; import { ApolloClient, InMemoryCache } from "@apollo/client"; const createApolloClient = […]

  • Hasura graphql optional generated variable

    0 how can I attach a variable to a mutation conditionally? I want to create an upsert mutation where the id is generated by the database. So, if the $id variable was set, make an update, otherwise, a creation. I have tried something like this: mutation upsert ( $id: uuid $name: String ) { insert_data_one( […]

  • GraphQL Mutation Query Not working in Apollo Server

    0 helpppp, I am making a movie website using Tmdb api built with Nestjs and Graphql as the backend, I wanted to make a patch request that users can upload their ratings for each of the movies, here is the link to the docs for more details: https://developer.themoviedb.org/reference/movie-add-rating, I am using schema first approach with […]