#GraphQL Queries failing for one-to-many relationship.

1 messages · Page 1 of 1 (latest)

onyx carbonBOT
#
special_sauce#9414 has been warned

Reason: Duplicated text

#

GG @worthy roost, you just advanced to level 1!

worthy roost
#

oh that is so depressing i typed out such a big description of the issue

#

to briefly reiterate i am seeing the following error message when trying to view a user that has a one to many relationship with the character object in the admin app:

onyx carbonBOT
#
special_sauce#9414 has been warned

Reason: Duplicated text

#
special_sauce#9414 is now unbanned
worthy roost
#

lord have mercy it banned me

worthy roost
#

let me use screenshots since MEE6 is super aggro

#

Here's the relational setup for character:

#

and for user:

#

setting the field in admin shows the name if a name is set for user, otherwise their uid:

#

here's the error message when the admin app attempts to fetch characters related to one user or vice versa:

maiden loom
#

Sorry for this mess

#

We will look into the bot settings

#

Also, we will review your question and get back to you soon

lapis nebula
#

Ahh. I made you immune to the bot. So sorry! I will change the settings of bot to something else.

maiden loom
#

@worthy roost the error makes a lot of sense - because the character entity does not have a "user" field, you called it "owner".
it looks like an issue in the query generator.
Does you code available on a public repo we can investigate?
Other wise, could you please send a more detailed screenshot with the list of fields? (you can DM it in case you prefer to)

worthy roost
#

Absolutely, I'll drop an ss here tomorrow since i'm not on a public repo. I can always change the field name to user rather than owner. I suspected this might actually be causing the issue but wasn't sure if foreign key name mismatches were okay or not.

onyx carbonBOT
#

GG @worthy roost, you just advanced to level 2!

maiden loom
#

This will probably resolve your issue, but definitely should not be THE solution. It should work with "owner".
Looking forward to seeing the screenshots. Meanwhile, we will try to reproduce the issue without it and let you know in case we made any progress.

quick hill
worthy roost
#

this is great, thank you for your help - do you still need more screenshots since you were able to repro or are you good?

quick hill
#

Nope, thanks a lot!
Now that we have the reproduction, we have everything we need.