You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, it's still a bit tricky to establish links to existing documents from newly inserted documents, or replacement documents. You have to know the id of the document you want to link to in advance, which requires at least one more query to happen in a separate request. This is definitely not ideal.
It would be nice if we could use document queries to find documents we could link to. For example,
so @query-all would return a list, which can then be put into a field that expects a set, a list, or an array, and @query-one would be used to just query for a single item (and maybe error if it finds more than one, or zero).
We may want to support top-level queries too, like,
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Right now, it's still a bit tricky to establish links to existing documents from newly inserted documents, or replacement documents. You have to know the id of the document you want to link to in advance, which requires at least one more query to happen in a separate request. This is definitely not ideal.
It would be nice if we could use document queries to find documents we could link to. For example,
Or
so
@query-all
would return a list, which can then be put into a field that expects a set, a list, or an array, and@query-one
would be used to just query for a single item (and maybe error if it finds more than one, or zero).We may want to support top-level queries too, like,
cause this would allow reuse of a query result in multiple documents.
We may even want to support arbitrary woql queries, in which case we could even fill arbitrary fields with data that comes out of a query:
What do people think?
Beta Was this translation helpful? Give feedback.
All reactions