• Nitric.io
Back to HomePython
  • Nitric.io
    • Getting Started
  • APIs

    • api()
    • api.get()
    • api.post()
    • api.put()
    • api.delete()
    • api.patch()
    • api.methods()
    • api.all()
  • Collections

    • collection()
    • collection.collection()
    • collection.query()
      • See also
    • collection.query.where()
    • collection.query.limit()
    • collection.query.page_from()
    • collection.query.fetch()
    • collection.query.stream()
    • collection.doc()
    • collection.doc.get()
    • collection.doc.set()
    • collection.doc.delete()
    • collection.doc.collection()
  • Topics

    • topic()
    • topic.publish()
    • topic.subscribe()
  • Queues

    • queue()
    • queue.send()
    • queue.receive()
  • Secrets

    • secret()
    • secret.put()
    • secret.version()
    • secret.latest()
    • secret.version.access()
  • Storage

    • bucket()
    • bucket.on()
    • bucket.file()
    • bucket.files()
    • file.read()
    • file.write()
    • file.delete()
    • file.download_url()
    • file.upload_url()
  • Schedules

    • schedule()
  • Websockets

    • websocket()
    • websocket.on()
    • websocket.send()

Python - collection.query()

Begins a new query on a Collection.

from nitric.resources import collection

profiles = collection('profiles').allow('reading')

query = profiles.query()

See also

  • Adding filters: query().where()
  • Limiting the results: query().limit()
  • Streaming results: query().stream()
  • Fetching results: query().fetch()
Edit this page on GitHub
Previouscollection.collection()
Nextcollection.query.where()

What did you think of this content?

© 2024 Nitric Inc.

—ContributionsSupport
Follow us on TwitterFollow us on GitHubJoin our Discord serverYouTube