Skip to content

Get all documents of the database #127

Answered by tobiemh
AFatNiBBa asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @AFatNiBBa , so the way SurrealDB works is slightly different. In SurrealDB everything belongs to a table, while in Neo4j, everything is described with metadata instead.

So in SurrealDB there is not (yet) a way of getting all items, but you can select from multiple different tables at the same time. So technically you can select every table type, which would have the same effect. But obviously not quite as nice...

SELECT * FROM person, user, admin, game, movie, actor;

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@alkeryn
Comment options

@RayZwankhuizen
Comment options

@tobiemh
Comment options

@alkeryn
Comment options

Answer selected by AFatNiBBa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants