
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
dgraph-orm
Advanced tools
Simplified schema creation, queries and mutations for Dgraph.
npm install dgraph-orm
https://ashokvishwakarma.github.io/dgraph-orm
import dgraph from 'dgraph-orm';
const UserSchema = new dgraph.Schema('user', {
name: {
type: dgraph.Types.STRING,
index: true,
token: {
term: true
}
},
email: {
type: dgraph.Types.STRING,
index: true,
unique: true,
token: {
exact: true
}
},
password: dgraph.Types.PASSWORD,
bio: dgraph.Types.STRING,
friend: {
type: dgraph.Types.UID,
model: 'user', // related model name
count: true,
reverse: true
}
});
/**
* Set and create model out of the schema
*/
const User = dgraph.model(UserSchema);
/**
* Creates a new user with passed fields
*
* Returns the created user along with the generated uid
*/
const user = await User.create({
name: 'Ashok Vishwakarma',
email: 'akvlko@gmail.com',
bio: 'My bio ...'
});
console.log(user);
// {
// uid: '0x1',
// name: 'Ashok Vishwakarma',
// email: 'akvlko@gmail.com',
// bio: 'My bio ...'
// }
For the full documentation please visit the below link
https://ashokvishwakarma.github.io/dgraph-orm
Issues and pull requests are welcome for
FAQs
Simplified schema creation, queries and mutations for Dgraph.
We found that dgraph-orm demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.