February 20, 2020 at 6:22am
February 20, 2020 at 1:40pm
there's "on expression" for a more flexible constraint. But I'm not sure if we can access other properties (so, objecttype level) or not (so, property level).
February 21, 2020 at 8:18pm
Constraints across multiple links in an object are not supported. Support for constraints across multiple singleton properties in an object type will be added soon (https://github.com/edgedb/edgedb/issues/1164).
And if it's possible to pull next values from a sequence object? I couldn't find anything about that in the doc.
Sequences are incremented implicitly when you're inserting an object with a sequence property. Fetching next values directly is not implemented yet, but should probably be a straightforward addition.