Skip to content

Query does not fetch data in relation where relation has no data #81

Discussion options

You must be logged in to vote

So, I figured out what my issue was.

I needed to have shouldFilterTopLevel: false on the UnregisteredParty.Invitation reference. I am unsure why this impacted, but I guess there is something I don't understand about how Supabase works under the hood.

Before:

[Reference(typeof(UnregisteredPartyInvitation))]
public UnregisteredPartyInvitation Invitation { get; set; } = new();

After:

[Reference(typeof(UnregisteredPartyInvitation), shouldFilterTopLevel: false)]
public UnregisteredPartyInvitation Invitation { get; set; } = new();

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@acupofjose
Comment options

@nove1398
Comment options

@thisisthemurph
Comment options

@acupofjose
Comment options

@nove1398
Comment options

Answer selected by thisisthemurph
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants