Skip to main content
Version: 0.24

Interface: Query

A server-side read-only operation, callable from the client and the server.

Create one with the query constructor.

See Queries.

Extends

  • BaseSpecElement<"query">

Properties

auth?

optional auth?: boolean

Whether this Query requires auth. If your app has auth enabled, this defaults to true.

Only available if your app has auth enabled.


entities?

optional entities?: string[]

A list of entities you wish to use inside your Query.

See Using Entities in Queries.


fn

fn: Reference<AnyFunction>

Reference to the Query's NodeJS implementation.

See the docs for details on the implementation and its context.


kind

kind: "query"

The internal Wasp type of a SpecElement. Used by the compiler. You should not set this field directly, instead use the dedicated constructors.

Inherited from

BaseSpecElement.kind