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