Hub JS Package

Hub JS Package

  • Users
  • Buckets
  • Threads
  • Textile Docs

@textile/hub > Query > (constructor)

Query.(constructor)

Query creates a new generic query object.

Signature:

constructor(ands?: CriterionJSON[], ors?: QueryJSON[], sort?: SortJSON | undefined);

Parameters

ParameterTypeDescription
andsCriterionJSON[]An array of top-level Criterions to be included in the query.
orsQueryJSON[]An array of internal queries.
sortSortJSON | undefinedAn object describing how to sort the query.
  • Query.(constructor)
  • Parameters
Hub JS Package
Docs
Getting StartedThreadDBBuckets
Resources
All DocumentationProject SlackBlog
More
GitHubStar
Follow @textileio