Skip to content

Nested lookups, variables for GraphQL operations#4

Merged
jbrodbec merged 5 commits into
mainfrom
features
May 4, 2026
Merged

Nested lookups, variables for GraphQL operations#4
jbrodbec merged 5 commits into
mainfrom
features

Conversation

@jbrodbec

Copy link
Copy Markdown
  • nested lookups in the style of hasura
query {
  OrganisationView(where: { members: { active: { _eq: true } } }) {
    active
    name
    members {
      active
    }
  }
}
  • support variables as part of GraphQL operations

query DocumentsList($limit: Int!, $filter: String, $andCondition1: DocumentView_bool_exp!) {
    documents: DocumentView(
        where: { _and: [
            { _or: [
                { mandate: { _ilike: $filter }},
                { category: { _ilike: $filter }},
                { label: { _ilike: $filter }},
                { documentId: { _ilike: $filter }},
                { createdBy: { _ilike: $filter }},
            ]},
            $andCondition1
        ]},
        limit: $limit
    ) {
        documentId
        version
        mandate
        filename
    }
}

andCondition1 = { createdAt: { _gte: this._getFromDate() } }

Joanna Brodbeck added 2 commits March 6, 2026 10:29
- added getRelatedTable function
- updated example file for Config.kt to include the getRelatedTable fun
- include TableAndConditionService such that the related tables can be found
@jbrodbec jbrodbec merged commit 05d8bbf into main May 4, 2026
3 checks passed
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.

Where filter on nested objects fields Variables as part of a GraphQL operation

1 participant