Questions

  • Getting ‘Module not found ‘ error when running nodemon

    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 […]

  • Invariant Violation APOLLO: Using next.js and ts

    0 I get an Invariant Violation when using the apollo client on react, specifically when I use the ApolloProvider. If I delete those ApolloProvider lines the problem goes, also I already tried removing the provider from Next-Auth. I’m using typescript and I don’t know if the declaration of the apollo configuration is correct. This is […]

  • Use of enum in apollo server 4

    0 I am learning to build a GraphQL API, and I’d like to usethe type enum In my database, the data looks like this : const missions = [ { id: "1", name: "Mission 1", status: "in progress", }, ]; And and my schema and resolvers like this : const typeDefs = gql` enum Status […]

  • Difference between graphql server and api gateway

    1 What is the difference between GraphQL Server and API Gateway ? As it both can combine the response of multiple apis and can do authentication, input validation, metrics. graphql api-gateway Share Improve this question Follow edited Sep 19, 2022 at 9:04 Ajay S asked Sep 19, 2022 at 8:51 Ajay SAjay S 48k2727 gold […]

  • Response not successful: Received status code 400 at new ApolloError

    0 I am working on an application with has the backend NestJS with graphql and postgres. Front End is in Next JS. Facing this error while calling a mutation from the front end. Relevant details of the code are below: — Graphql Query definition — Front End Code: const SAVE_PASSWORD_MUTATION = gql` mutation SavePassword($passwordInput: Password!, […]

  • Error: Cannot read properties of undefined (reading ‘Symbol(__APOLLO_CONTEXT__)’) when using apollo provider

    0 i want to use query in my next app but when i’m using it i’m getting error Error: Cannot read properties of undefined (reading ‘Symbol(APOLLO_CONTEXT)’) so this is my apollo client: import { ApolloClient, InMemoryCache } from "@apollo/client"; const apolloClient = new ApolloClient({ uri: "https://localhost:8000/", cache: new InMemoryCache(), }); export default apolloClient; layout.tsx: import […]

  • Facebook Ads API Insights: Not receiving `dda_results` in Ads Insights API response

    0 I am using the Facebook Ads API to pull Ads Insights data for my campaigns. I am trying to include dda_results in the data I fetch, which according to the Facebook documentation should contain "Estimated incremental conversions caused by a given ad". Here’s the API query I am using: https://graph.facebook.com/v18.0/act_XXXX/insights?level=ad&fields=campaign_name,campaign_id,adset_name,adset_id,ad_name,ad_id,clicks,reach,impressions,objective,spend,inline_link_clicks,dda_results&limit=500&time_increment=1&access_token=XXXX&time_range[since]=2023-09-10&time_range[until]=2023-09-21 The API returns the […]

  • 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’ […]