0 I have two services in my Apollo Gateway configuration. I can only connect to one of them with a VPN. I would like to check this using the X-Forwarded-For header. public makeGateway = (): ApolloGateway => { const gateway = new ApolloGateway({ debug: this.config.DEBUG, supergraphSdl: new IntrospectAndCompose({ subgraphs: this.config.services, }), buildService: this.buildService, serviceHealthCheck: true, […]
0 This is my routes Route::get(‘/carts/{numericProductID}’, ‘AppHttpControllersShopifyController@showProductDetails’) ->name(‘showProductDetails’); This is the link to direct to other page to show/fetch the details of the selected product <a href="{{ route(‘showProductDetails’, [‘numericProductID’ => $product[‘node’][‘id’]]) }}">View Details</a> php html laravel graphql shopify Share Follow asked 33 mins ago Ruel A AlmoniaRuel A Almonia 111 bronze badge 1 What is […]
0 Suppose I want to execute a many-to-many mutation like below, which is cited from prisma.io: const createCategory = await prisma.post.create({ data: { title: ‘How to be Bob’, categories: { create: [ { assignedBy: ‘Bob’, assignedAt: new Date(), category: { create: { name: ‘New category’, }, }, }, ], }, }, }) To implement Graphql […]
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 […]