I have two databases/models User
and Listing
.
I am trying to create two relations:
- One
User
to oneListing
called "ListingOwner" - One
User
to manyListing
called "ListingCreator"
My users can create multiple listings. I want to keep that as "Creator". But any user is allowed to come in and "claim" a listing, making them the "Owner". However in graph.cool I can't create more then one relationshp between User
and Listing
model, it gives me this error:
https://i.stack.imgur.com/r8elX.png
Server request for mutation
AddRelationMutation
failed for the following reasons: 1. A field with the name 'listing' already exists AddRelationInput!) {addRelation(input:$input_0) {clientMutat ^^^