-
Notifications
You must be signed in to change notification settings - Fork 0
/
TODO
23 lines (23 loc) · 2.18 KB
/
TODO
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
SurrealDb Library and Consumer App:
☐ create a nestjs rest/graphql starter from scratch to example how to use nests surrealdb library
☐ @critical readme for library with a start nestjs project and ......
☐ readme for @koakh/nestjs-surrealdb ex bootstrap a nestjs project and connect to surrealdb project
✔ @critical After signIn can't create record `Error: There was a problem with the database: The table does not exist` @done(22-09-05 23:00)
✔ @critical PermissionError: Unable to create record: person:uv1o55sjes0tdpa31ool @done(22-09-05 23:01)
is a bug fix, with new binary and FULL permissions for all users it start to work
✔ signin and signout @done(22-09-01 22:45)
✔ use asyncForRoot @done(22-09-05 22:26)
✔ add typescript types @done(22-09-01 22:45)
✔ remove all try catch from app.service and use global one @done(22-09-02 01:03)
✔ improve error handling show message `RecordError: Record not found: person:uv1o55sjes0tdpa31ool` @done(22-09-05 22:27)
✔ pass env variables to `SurrealDbModule.register({` @done(22-09-05 22:27)
☐ get response types
✔ finish readme with all the curls in order @done(22-09-06 00:10)
Ask Master Tobie:
✔ tobie tips about ping, info, sync @done(22-09-05 22:27)
ping is used internally. It doesn't need to be called from any client code. It isn't quite a WebSocket ping message, but it serves the same purpose. Basically it is used as a timeout buster (some loadbalancers will kill a WebSocket even if the ping<-pong messages are sent, if there is no actual data sent over the WebSocket connection). The ping method is run periodically internally, to send a high-level message over the connection. It can be called from external code, but wouldn't need to be...
info is useful yes. It basically runs SELECT * FROM $auth which should return the user id, or the user record for the authenticated user.
sync, live, and kill aren't fully implemented yet, so you can add those in, but don't expect them to work just yet!
☐ sugestion method to retrieve let key value, to check that var is created
☐ is any endpoint to use SurrealQL INFO, get info from TABLE etc
☐ info, Invalid params, whats is the params to use?