Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.