graphql

GraphQL ERESOLVE unable to resolve dependency tree when building my docker container

好久不见. 提交于 2020-12-30 08:13:25
问题 Here are my files. Here is I think the core of the problem. Could not resolve dependency: npm ERR! peer graphql@"^0.12.0 || ^0.13.0 || ^14.0.0" from graphql-middleware@4.0.2 docker-compose.yml version: '3.7' services: apollo: container_name: apollo build: context: . dockerfile: Dockerfile environment: - NODE_ENV=development volumes: - '.:/app' - '/app/node_modules' ports: - 4000:4000 restart: always Dockerfile # Use the official image as a parent image. FROM node:current-slim # Set the

GraphQL ERESOLVE unable to resolve dependency tree when building my docker container

北城以北 提交于 2020-12-30 08:13:15
问题 Here are my files. Here is I think the core of the problem. Could not resolve dependency: npm ERR! peer graphql@"^0.12.0 || ^0.13.0 || ^14.0.0" from graphql-middleware@4.0.2 docker-compose.yml version: '3.7' services: apollo: container_name: apollo build: context: . dockerfile: Dockerfile environment: - NODE_ENV=development volumes: - '.:/app' - '/app/node_modules' ports: - 4000:4000 restart: always Dockerfile # Use the official image as a parent image. FROM node:current-slim # Set the

Should I handle a GraphQL ID as a string on the client?

一曲冷凌霜 提交于 2020-12-29 02:58:33
问题 I am building an application using: MySQL as the backend database Apollo GraphQL server as a query layer for that database Sequelize as the ORM layer between GraphQL and MySQL As I am building out my GraphQL schema I'm using the GraphQL ID data type to uniquely identify records. Here's an example schema and its MySQL resolver/connector Graphql Type: type Person { id: ID! firstName: String middleName: String lastName: String createdAt: String updatedAt: String } Sequelize connector export

Should I handle a GraphQL ID as a string on the client?

跟風遠走 提交于 2020-12-29 02:58:29
问题 I am building an application using: MySQL as the backend database Apollo GraphQL server as a query layer for that database Sequelize as the ORM layer between GraphQL and MySQL As I am building out my GraphQL schema I'm using the GraphQL ID data type to uniquely identify records. Here's an example schema and its MySQL resolver/connector Graphql Type: type Person { id: ID! firstName: String middleName: String lastName: String createdAt: String updatedAt: String } Sequelize connector export

Should I handle a GraphQL ID as a string on the client?

天涯浪子 提交于 2020-12-29 02:56:53
问题 I am building an application using: MySQL as the backend database Apollo GraphQL server as a query layer for that database Sequelize as the ORM layer between GraphQL and MySQL As I am building out my GraphQL schema I'm using the GraphQL ID data type to uniquely identify records. Here's an example schema and its MySQL resolver/connector Graphql Type: type Person { id: ID! firstName: String middleName: String lastName: String createdAt: String updatedAt: String } Sequelize connector export

Should I handle a GraphQL ID as a string on the client?

梦想的初衷 提交于 2020-12-29 02:56:24
问题 I am building an application using: MySQL as the backend database Apollo GraphQL server as a query layer for that database Sequelize as the ORM layer between GraphQL and MySQL As I am building out my GraphQL schema I'm using the GraphQL ID data type to uniquely identify records. Here's an example schema and its MySQL resolver/connector Graphql Type: type Person { id: ID! firstName: String middleName: String lastName: String createdAt: String updatedAt: String } Sequelize connector export

AWS Amplify - AppSync & Multiple DynamoDB Tables

核能气质少年 提交于 2020-12-28 15:06:55
问题 When initializing a new GraphQL backend via the Amplify CLI, the sample schema defines multiple types with the @model annotation. For example... type Blog @model { id: ID! name: String! posts: [Post] @connection(name: "BlogPosts") } type Post @model { id: ID! title: String! blog: Blog @connection(name: "BlogPosts") comments: [Comment] @connection(name: "PostComments") } type Comment @model { id: ID! content: String post: Post @connection(name: "PostComments") } When pushed, this results in

AWS Amplify - AppSync & Multiple DynamoDB Tables

和自甴很熟 提交于 2020-12-28 15:03:38
问题 When initializing a new GraphQL backend via the Amplify CLI, the sample schema defines multiple types with the @model annotation. For example... type Blog @model { id: ID! name: String! posts: [Post] @connection(name: "BlogPosts") } type Post @model { id: ID! title: String! blog: Blog @connection(name: "BlogPosts") comments: [Comment] @connection(name: "PostComments") } type Comment @model { id: ID! content: String post: Post @connection(name: "PostComments") } When pushed, this results in

AWS Amplify - AppSync & Multiple DynamoDB Tables

戏子无情 提交于 2020-12-28 15:02:32
问题 When initializing a new GraphQL backend via the Amplify CLI, the sample schema defines multiple types with the @model annotation. For example... type Blog @model { id: ID! name: String! posts: [Post] @connection(name: "BlogPosts") } type Post @model { id: ID! title: String! blog: Blog @connection(name: "BlogPosts") comments: [Comment] @connection(name: "PostComments") } type Comment @model { id: ID! content: String post: Post @connection(name: "PostComments") } When pushed, this results in

Use @skip on “null” fields using graphql

无人久伴 提交于 2020-12-26 11:15:39
问题 Given the following GQL query getMembers { repository(owner: "nasa", name: "cumulus") { mentionableUsers(first: 100) { nodes { login organization(login: "nasa") { login } } } } } (Query against GitHub v4 GraphQL) the value for login under organization is either "nasa" or null I am trying to figure out if it's possible to use @skip against the login/organization so that only contributors to the repo, who are members of the nasa org are shown. I believe for this particular query you can do it