Comments (1)
-- Create a person for everyone in the array where the number is lower than or equal to 5
LET $num = [1,2,3,4,5,6,7,8,9];
FOR $thing IN $num {
IF $thing > 5{
BREAK;
} ELSE IF $thing < 5 {
CREATE type::thing(
'person', $thing
) CONTENT {
name: $thing
};
};
};
![Screenshot 2024-04-17 at 16 33 44](https://private-user-images.githubusercontent.com/35943047/323287452-3987512c-561d-4f2d-9235-d19aa3aa5196.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk0NDM2NDEsIm5iZiI6MTcxOTQ0MzM0MSwicGF0aCI6Ii8zNTk0MzA0Ny8zMjMyODc0NTItMzk4NzUxMmMtNTYxZC00ZjJkLTkyMzUtZDE5YWEzYWE1MTk2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjI2VDIzMDkwMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWY4MGY5MDhiMjQ1YzQzOGZkMDM3ZDA2N2RjZTdiMzYzZjMxYjEzN2I5ZmI0MjFiYmIwNjhkMjU2ZjRmMzY4OWImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.XQBP2TOGj4_ZttyR0jWdj_BvDpVSeLY8WC_X1TDTalk)
from docs.surrealdb.com.
Related Issues (20)
- Bug: Connection problem after upgrading to [email protected] HOT 1
- Documentation: Vector Index HOT 2
- Bug: string::is::email top level domain omission is valid? HOT 1
- [BUG][DOCS] Integrate Auth0 as an Authentication Provider HOT 5
- Documentation: `INSERT RELATION` and `INSERT` without `INTO` HOT 1
- Documentation: Wrong URL used in Python Notebook example
- Documentation: strangely used parameter in context example HOT 2
- Documentation: 8 things I struggled with while learning surrealQL HOT 1
- Documentation: AI search HOT 2
- Documentation: Missing ! in OPERATORS
- Documentation: Add documentation for IP string functions
- Documentation: Specify the fields to fetch in the record link array
- Documentation: Document the `--alpha` flag
- Feature: add support for `SPLIT` in `DEFINE TABLE`
- Incorrect case on js function in the docs
- Update Transactions Docs
- Documentation: Update http integration
- Documentation: chance to fix rpc integration docs for 2.0.0-alpha.1
- Documentation: Missing PERMISSION on DEFINE FUNCTION HOT 1
- Documentation: Deploy on Kubernetes deploys version 1.0.0 of SurrealDB HOT 1
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 docs.surrealdb.com.