Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix fails during login #28 #30

Merged
merged 2 commits into from
Jul 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,15 @@
"rules": {
"recommended": true
},
"ignore": ["dist/**", "node_modules/**", ".tshy/**", ".tshy-build/**", "./out/**", "./client_generated/**"]
"ignore": [
"dist/**",
"node_modules/**",
".tshy/**",
".tshy-build/**",
"./out/**",
"./client_generated/**",
"package-lock.json"
]
},
"formatter": {
"ignore": ["dist/**", "node_modules/**", ".tshy/**", "./out/**"],
Expand Down
15 changes: 15 additions & 0 deletions example.surql
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,18 @@ DEFINE FIELD outputSchema ON subscription TYPE option<object>;
DEFINE FIELD parameterSchema ON subscription TYPE option<object>;
DEFINE FIELD restApi ON subscription TYPE option<object>;
DEFINE FIELD updatedAt ON subscription TYPE datetime DEFAULT time::now() VALUE $value OR time::now();


DEFINE TABLE testcollection SCHEMAFULL;

-- Give the user table an email field. Store it in a string
DEFINE FIELD email ON TABLE testcollection TYPE string
-- Check if the value is a properly formatted email address
ASSERT string::is::email($value);


DEFINE TABLE book SCHEMAFULL;

DEFINE FIELD vendors ON TABLE book TYPE array<object> DEFAULT [];
DEFINE FIELD vendors[*].name ON TABLE book TYPE string;
DEFINE FIELD vendors[*].price ON TABLE book TYPE number;
Loading