Queries
A live search of all Objects which share a common Type or Property
Last updated
Was this helpful?
A live search of all Objects which share a common Type or Property
Last updated
Was this helpful?
Lots of people compare Queries with databases, but there's a key difference: Queries don't store Objects like regular databases.
Queries are a way to see a portion of your Graph, and Objects you've created, based on your filtered criteria, and several secondary filters which you can customize. You can think of them as a live filter or query for Objects which share certain criteria - specifically, a Type or a Property.
Organizing and Accessing Objects We often get requests along the lines of: How do I find all of the Notes I've created? One easy way is to create a Query based on Type. For example; Note, which will display every Note you've created in Anytype. If you have specific notes you'd like to frequently access, you can filter them based on Properties you've added to these notes. For instance: Creation Date, Tags, or Priority. You can then create a Widget which will appear in your Sidebar, acting like a folder for all Objects that meet certain criteria.
Editing Objects
Queries also provide a way to quickly edit Objects in a list View. You can use multi-select in Queries to delete multiple Objects at once, or to batch update Properties / the Object Type of Objects. Any Properties added to a Query in the Property Menu (top right), will be adopted by all new Objects created with the "+ New Object" button.
You can create a Query with the + button from your sidebar or using the / shortcut menu in the editor.
You'll then need to choose if you want a Query by Type which lets you list all of your Objects of a certain Type, or a Query by Property which will list all Objects that contain the Property of your choosing.
Instead of adding Properties one-by-one to Objects, you can batch-add them to your Query by clicking the filters on the right side.
Here you can toggle on/off any Properties that you would like to see, add another Property or new Property, and edit the View of the Query here.
You are also able to sort or filter your Query by any Property that you've previously added to the Query.
In this section you can find all the currently available layout options.
Kanban, calendar and graph views are available on desktop only.