mirror of
https://github.com/anyproto/docs.git
synced 2025-06-08 05:47:05 +09:00
GITBOOK-583: 0.46.0 + Getting Started
This commit is contained in:
parent
2934fe73b6
commit
abd61b0074
446 changed files with 1580 additions and 1588 deletions
67
getting-started/sets/README.md
Normal file
67
getting-started/sets/README.md
Normal file
|
@ -0,0 +1,67 @@
|
|||
---
|
||||
description: A live search of all Objects which share a common Type or Property
|
||||
---
|
||||
|
||||
# Queries
|
||||
|
||||
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.
|
||||
|
||||
#### Queries serve two primary functions:
|
||||
|
||||
1. **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.
|
||||
2. **Editing Objects**
|
||||
|
||||
<figure><img src="../../.gitbook/assets/image (111).png" alt="" width="563"><figcaption></figcaption></figure>
|
||||
|
||||
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.
|
||||
|
||||
<div><figure><img src="../../.gitbook/assets/image (90).png" alt=""><figcaption></figcaption></figure> <figure><img src="../../.gitbook/assets/image (91).png" alt=""><figcaption></figcaption></figure></div>
|
||||
|
||||
### Creating Queries
|
||||
|
||||
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. 
|
||||
|
||||
<div><figure><img src="../../.gitbook/assets/image (112).png" alt=""><figcaption></figcaption></figure> <figure><img src="../../.gitbook/assets/image (113).png" alt=""><figcaption></figcaption></figure></div>
|
||||
|
||||
### Customizing Your Query
|
||||
|
||||
#### Toggle & Add Properties to Objects via Queries
|
||||
|
||||
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.
|
||||
|
||||
<figure><img src="../../.gitbook/assets/image (114).png" alt="" width="375"><figcaption></figcaption></figure>
|
||||
|
||||
#### Sorts & Filters
|
||||
|
||||
You are also able to sort or filter your Query by any Property that you've previously added to the Query.
|
||||
|
||||
<div><figure><img src="../../.gitbook/assets/image (119).png" alt=""><figcaption></figcaption></figure> <figure><img src="../../.gitbook/assets/image (120).png" alt=""><figcaption></figcaption></figure></div>
|
||||
|
||||
#### Layout
|
||||
|
||||
In this section you can find all the currently available layout options.
|
||||
|
||||
{% hint style="warning" %}
|
||||
Kanban, calendar and graph views are available on desktop only.
|
||||
{% endhint %}
|
||||
|
||||
<figure><img src="../../.gitbook/assets/image (109).png" alt="" width="375"><figcaption></figcaption></figure>
|
35
getting-started/sets/collections.md
Normal file
35
getting-started/sets/collections.md
Normal file
|
@ -0,0 +1,35 @@
|
|||
---
|
||||
description: >-
|
||||
A folder-like structure where you can visualize and batch edit objects of any
|
||||
type
|
||||
---
|
||||
|
||||
# Collections
|
||||
|
||||
Collections can be used to organize a variety of different objects and store them in one place.
|
||||
|
||||
You are not restricted to viewing only one Object Type at a time, this means you can have multiple different types within one collection.
|
||||
|
||||
If you are organizing your meal prep for the week, you might have a list of recipes, as well as ingredients and a shopping list.
|
||||
|
||||
The main types you may have could be Recipes and Ingredients.
|
||||
|
||||
In a Collection, you can organize all of this Types together seamlessly.
|
||||
|
||||
{% hint style="warning" %}
|
||||
The main difference between Queries and Collections is that Queries draw Objects from your entire Graph, whereas Collections work more like a traditional database, where they start empty and you have to add Objects to them manually.
|
||||
{% endhint %}
|
||||
|
||||
### Adding Objects
|
||||
|
||||
To add new Objects to a Collection, simply click on the New buttons either in the top right corner or at the bottom of a collection.
|
||||
|
||||
<div><figure><img src="../../.gitbook/assets/image (1) (1) (1).png" alt=""><figcaption></figcaption></figure> <figure><img src="../../.gitbook/assets/image (2) (1) (1).png" alt=""><figcaption></figcaption></figure></div>
|
||||
|
||||
To add an existing Object to a Collection while in the collection view, you can hover over the Existing object menu option under the arrow menu.
|
||||
|
||||
<figure><img src="../../.gitbook/assets/existing-objects-to-collection_shadow.png" alt="" width="563"><figcaption></figcaption></figure>
|
||||
|
||||
To add an existing Object to a Collection outside of the collection view, you can use the Add to Collection menu option from the object menu.
|
||||
|
||||
<figure><img src="../../.gitbook/assets/image (3) (1).png" alt="" width="563"><figcaption></figcaption></figure>
|
Loading…
Add table
Add a link
Reference in a new issue