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

Last updated on Dec 24, 2024