Questions

  • Netflix DGS configuration dgs.graphql.graphiql.enabled=true is not working

    0 Netflix DGS configuration dgs.graphql.graphiql.enabled=true is not working. I have also added this config – dgs.graphql.graphiql.path=/graphiql I have a spring boot application in maven and I have implemented my graphQL APIs using Netflix DGS. APIs are working fine using postman but when I try to enable graphiql by hitting /graphiql end point, it gives me […]

  • Apollo server return protected field when performing login mutation

    0 I have a problem with returning protected fields from PersonType in the login mutation. The idea is to set the cookie or session, and then return the user with some protected fields. Server: const server = new ApolloServer({ schema, context: async ({ req, res }: { req: Request; res: Response }) => { const […]

  • hasura-v2.xx gives graphql-engine-1 exited with code 1 on `hasura metadata track …`

    0 I’m trying to get started with Hasura. So here is my docker-compose.yml file: version: "3.6" services: postgres: image: postgres:15 restart: always volumes: – db_data:/var/lib/postgresql/data environment: POSTGRES_PASSWORD: postgrespassword graphql-engine: build: context: . dockerfile: DockerfileHasura # command: /bin/sh -c ‘hasura metadata track –all-tables –all-relationships –schema public –endpoint https://graphql-engine:8080 && exec graphql-engine serve’ command: /bin/sh -c ‘exec […]

  • How to skip validation rules in GraphQL Spring Boot application

    0 I have a SpringBoot + GraphQL application. I am trying to upgrade to the latest version (graphql-spring-boot-starter 11.1.0 -> 13.0.1) which changes graphql-java from 16.2 -> 19.2. I have schema that looks like enum Type { TYPE1 TYPE2 } interface Generic { name: String type: Type } type Type1 extends Generic { name: String […]

  • Gatsby, Prismic with GraphQl query aliases error

    0 I tried to update Gatsby and plugins from v4 to v5. I started getting this error in my query: const query = graphql` query Ad { prismicHomepage { id type data { body { … on PrismicHomepageDataBodyCompareRatesCards { id slice_type items { bank { html text richText } checkingname { html text richText } […]

  • why use template in year_month class?

    17 In MSVC chrono implementation I see the following code _EXPORT_STD template <int = 0> _NODISCARD constexpr year_month operator+(const year_month& _Left, const months& _Right) noexcept { const auto _Mo = static_cast<long long>(static_cast<unsigned int>(_Left.month())) + (_Right.count() – 1); const auto _Div = (_Mo >= 0 ? _Mo : _Mo – 11) / 12; return year_month{_Left.year() + […]

  • Directus collections do not show as schemas in GraphQL editor

    0 Basically this is what it says — I can for some reason not see all my collections from Directus reflected as schemas in any GraphQL editor and therefore not query these, except for just one. I am not sure what causes or caused this but would be very grateful for any help. graphql directus […]

  • ERROR #11321 PLUGIN “gatsby-source-strapi” gives error while running the sourceNodes. gatsby develop runs successfully but gatsby build fails

    0 ERROR #11321 API.NODE.EXECUTION "gatsby-source-strapi" threw an error while running the sourceNodes lifecycle: Request failed with status code 404 AxiosError: Request failed with status code 404 settle.js:19 settle [FEtest]/[gatsby-source-strapi]/[axios]/lib/core/settle.js:19:12 http.js:570 IncomingMessage.handleStreamEnd [FEtest]/[gatsby-source-strapi]/[axios]/lib/adapters/http.js:570:11 node:events:526 IncomingMessage.emit node:events:526:35 readable:1359 endReadableNT node:internal/streams/readable:1359:12 task_queues:82 processTicksAndRejections node:internal/process/task_queues:82:21 error #11321 api.node.execution "gatsby-source-strapi" threw an error while running the sourcenodes lifecycle: request failed […]

  • Gatsby filter with wordpress wpml langauge not working

    0 I have a wordpress headless setup to work with gatsby static site genetator. The data is coming correclty when queried from wordpress console. { categories (where : {language: "fr"}){ nodes { id, databaseId, name, uri } } } Same data is not coming when queried from gatsby graphql query: { allWpCategory (filter : {language […]

  • NextJS 13.5 causes graphql schema errors

    0 After updating to NextJS 13.5 I started seeing these errors when deployed on Vercel (but works fine locally): Error: Schema must contain uniquely named types but contains multiple types named "h". at new GraphQLSchema (/var/task/node_modules/.pnpm/[email protected]/node_modules/graphql/type/schema.js:219:15) My init code is pretty straightforward in the serverless function: const schema = buildSchemaSync({ authChecker: UserAuthority, resolvers: […] }); […]