Please consider changing the return types of the only and except methods from EntryQueryable to this to allow proper chaining.
only(fieldUid: string|string[]): this {
// ...
return this
}
except(fieldUid: string|string[]): this {
// ...
return this
}
The above should fix the issue of Property 'query' does not exist on type 'EntryQueryable'. when chaining other methods on entries afterward.
const entries = await stack
.contentType("contentTypeUid")
.entry()
.only(["title", "url"])
.query() // Property 'query' does not exist on type 'EntryQueryable'.
.where("tags", QueryOperation.EQUALS, "tech")
.find();
Please consider changing the return types of the only and except methods from
EntryQueryabletothisto allow proper chaining.The above should fix the issue of
Property 'query' does not exist on type 'EntryQueryable'.when chaining other methods on entries afterward.