Comments (1)
Heya, you can pass an object with variables as the second argument:
db.query("SELECT * FROM user WHERE email = $email", {
email: "[email protected]",
});
from surrealdb.js.
Related Issues (20)
- Bug: Using 3rd party tokens results in "IAM error: Not enough permissions to perform this action" for create actions HOT 1
- Bug: need better error messaging HOT 2
- Feature: Temp solution for Bun websocket? HOT 8
- Feature: .open() HOT 2
- Bug: import_ws.WebSocket is not a constructor HOT 1
- Bug: HTTPStrategy doesnt seem to remain authed after 1 hour HOT 1
- Bug: Can't connect to surreal with deno HOT 7
- Bug: live query does not return a json patch
- Bug: db is not reconnecting HOT 2
- Bug: Error when serializing BigInt HOT 1
- Bug: Problems with not flexible type Record<...>
- Bug Errors are mostly unusable: HOT 1
- Feature: Export types used in module
- Bug: undefined when i use db.info HOT 2
- Bug: Unable to set NULL values HOT 7
- Bug: db.update() throws error if not all fields of records are specified HOT 2
- Feature: Bun SDK for surrealdb HOT 2
- Bug: CF Pages SSR with SurrealJS fails HOT 2
- Feature: Parse object- and array based record ID HOT 5
- Bug: Using docker compose networking causes TypeError: t.mask is not a function or connection to hang when running .wait() or .query() HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from surrealdb.js.