Skip to content

Allow an easy way to pass selection to the underlying executeQuery #1170

Open
@ramnivas

Description

@ramnivas

Consider

query searchDocuments(searchString: String, @inject exograph: Exograph): Set<DocumentDatabase.Document>
.

Here is the intention it to pass along the selection to the underlying query (in other words, except for translating the searchString to its embedding, nothing should change). It is currently possible to inject Operation, take its selection (using the Field.query()), and form a GraphQL using that selection. But it is a tedious process. Instead we should allow a function (say, Field.selectionString()` so that developers can form their query and pass along this selection.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions