Replies: 1 comment 4 replies
-
Hey @Zercerium, I see what you mean. The current way of doing it would be like this SELECT * FROM temp:['London',NONE]..['Munich',NONE] We'll update that in docs, but feel free to open a feature request to suggest an alternative behaviour. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
i think this example should make it clear.
populate some data:
it is possible to query only ids which are from London without a WHERE statement?
I thought this would be possible:
SELECT * FROM temp:['London',NONE]..=['London',NONE];
which should return 4 entries. (A workaround would be to specify the max possible uuid as a string instead of NONE.)I also think this https://surrealdb.com/docs/surrealdb/surrealql/datamodel/ids#record-ranges example is a bit misleading because
SELECT * FROM temperature:['London', '2022-08-29T08:03:39']..;
should intuitively only returns readings from London, after the specified time. This is not the case; it also returns all readings from locations which are alphabetical sorted after London.For example
SELECT * FROM temp:['London',NONE]..;
would return 8 entries. This makes not really sense for this specific example in my opinion.Beta Was this translation helpful? Give feedback.
All reactions