Skip to content
This repository has been archived by the owner on May 26, 2022. It is now read-only.

Cant run seedDB #20

Closed
mogadanez opened this issue Nov 13, 2018 · 0 comments
Closed

Cant run seedDB #20

mogadanez opened this issue Nov 13, 2018 · 0 comments

Comments

@mogadanez
Copy link

looks like some incompatibility in relations usage here
for example:

type Review {
  id: ID!
  user: User @relation(name: "WROTE", direction: "IN")
}

when seed tried to add relation:

 ar8:AddUserReviews(from:"u4",to:"r8"){id}

a bunch of validation errors happens

 "Unknown argument \"userid\" on field \"AddUserReviews\" of type \"Mutation\"."
"Cannot query field \"id\" on type \"_AddUserReviewsPayload\".",
 "Field \"AddUserReviews\" argument \"from\" of type \"_UserInput!\" is required but not provided.",
"Field \"AddUserReviews\" argument \"to\" of type \"_ReviewInput!\" is required but not provided.",

I inspected schema and its looks like

AddUserReviews(
from: _UserInput!
to: _ReviewInput!
): _AddUserReviewsPayload
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant