Skip to content

Conversation

nikgraf
Copy link
Collaborator

@nikgraf nikgraf commented Jan 8, 2025

  • Allows to query nested relations
  • Validates that a relation type name is part of the the defined entities

API how to include relations in a query:

const events = useQuery({
  types: ['Event'],
  include: {
    attendees: {},
  },
})

API how to include nested relations in a query:

const events = useQuery({
  types: ['Event'],
  include: {
    attendees: {
      badges: {},
    },
  },
})

@nikgraf nikgraf self-assigned this Jan 8, 2025
@nikgraf nikgraf marked this pull request as ready for review January 13, 2025 17:28
@nikgraf nikgraf requested a review from cmwhited January 13, 2025 17:30
@nikgraf nikgraf closed this Jan 14, 2025
@nikgraf nikgraf deleted the ng/relations branch January 14, 2025 08:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant