Go - Collection.Query()
Begins a new query on a Collection.
import ("fmt""github.com/nitrictech/go-sdk/nitric")func main() {profiles, err := nitric.NewCollection("profiles").With(nitric.CollectionReading, nitric.CollectionWriting, nitric.CollectionDeleting)if err != nil {return}profilesQuery := profiles.Query()nitric.Run()}
See also
- Adding filters: Query().Where()
- Limiting the results: Query().Limit()
- Streaming results: Query().Stream()
- Fetching results: Query().Fetch()
- Using paging tokens: Query().FromPagingToken()
Last updated on Dec 24, 2024