Skip to content

Variables as part of a GraphQL operation #2

@esteiner

Description

@esteiner

To support queries like:

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() } }

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions