8 I have some legacy code with some singleton classes that register themselves using constructors of global variables. It’s a large codebase, that’s compiled into one executable. I have tried to organize the code base and regroup code into libraries. A minimal example of the current code is main.cpp int main(int argc, char *argv[]) { […]
0 I’m trying to create unit tests on my GraphQL API. This is the test file: import { graphql } from "graphql"; import { createSchema } from "../src/schema"; describe("BlacklistResolver", () => { it("fetches blacklist", async () => { const schema = await createSchema(); const query = ` query GetBlacklist($organisationId: String!) { getBlacklist(organisationId: $organisationId) } `; […]
0 I cannot query orders in Shopify with GraphQL for ambiguous reason, I am using Shopify API version 2022-10, this is my query: query { orders(first: 10) { edges { node { id } } } } This is what I get { "errors": [ { "message": "Field ‘orders’ doesn’t exist on type ‘QueryRoot’", "locations": […]
0 I’ve the follow query and I wanna get only one result of siteAttributeValues that will be regarding to search in "variables". What can I use instead of some in my query? { "query": "query($search: String!){rn sites(take: 10, where: { siteAttributeValues: { some: { stringValue: { like: $search } } } }){rn items{rn idrn namern […]
0 I have the following GrapqhQL query: query { listTenants { totalCount items { tenantId name sites { totalCount items { siteId cmxName cmxState hosts( order: { hostId: ASC } where: { hostName: { neq: "ans" } } skip: 4 take: 2 ) { totalCount items { hostId hostName siteId } } } } } […]
0 I have method: @GraphQLQuery(name = "events", description = "get all events") public List<String> getEvents() { return List.of("test", "test2"); } I need to create query for clients. below example not work: query events{ events{ … String } } what is wrong? spring graphql graphql-java Share Improve this question Follow asked Jun 23 at 13:27 user11149927user11149927 […]
0 I am using Android Studio Giraffe and mobile buy sdk 16.1.0.when I want to add a query for retrieve first 3 products from shopify it gives unresolved reference : products but all my dependencies and imports are correct should I use something different? val query = Storefront.query { rootQuery: Storefront.QueryRootQuery -> rootQuery.shop { shopQuery: […]
0 I am new to Apollo Federation and I am having the following issue / question: In Subgraph A I have the following: type Product @key(fields: "id") { { id: ID! title: String } In Subgraph B I have the following: type Product @key(fields: "id") { { id: ID! related: [Product] } When I run […]