Skip to content

Create helper method for Contact search #93

Description

@andrewxhill
  const query: IContactQuery = {
    username: searchString,
    address: ''
  }
  const options: IQueryOptions = {
    localOnly: false,
    remoteOnly: false,
    limit: 20,
    wait: 8,
    filter: QueryOptions.FilterType.NO_FILTER,
    exclude: []
  }
  const queryId = await Textile.contacts.search(query, options)

Ideally you could have the option to just pass

  const queryId = await Textile.contacts.search("Andrew")

Before close, update a tour of textile docs to reflect new sig

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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