Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@cubicweb/rql-generator
Advanced tools
This library exposes a set of helpers to make building RQL transactions simpler.
@cubicweb/rql-generator is available from NPM:
# With NPM
npm i @cubicweb/rql-generator
# Or with Yarn
yarn add @cubicweb/rql-generator
This library works on an existing transaction object. This allows you to combine different helpers on the same object to create complex transactions.
Please refer to the documentation of
@cubicweb/client
on how to create the instanceSchema and client parameters.
import { Transaction } from "@cubicweb/client";
import {instanceSchema, client} from "../data"
const transaction = new Transaction()
const { resolveEntity } = pushEntityFromEid(transaction, instanceSchema, 5, "BlogEntry", [
"title",
"content"
]);
const result = await client.executeTransaction(transaction)
const entity = resolveEntity(result)
console.log(entity)
// Will print {title: "entity title", content: "entity content"}
You can find the full documentation with examples here.
All @cubicweb
libraries are in the cubicwebjs monorepo.
Please refer to the main README.
Contact us on Matrix and check the roadmap on the CubicWeb Repository.
FAQs
Helpers to build RQL queries
We found that @cubicweb/rql-generator demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.