Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@fauna-labs/graphql-tool
Advanced tools
Fauna GraphQL tool is an automation library that is used to easily add features such as `authentication`, `custom resolver (UDF)`, `sorting of subgraphs`, `fuzzy full-text search`, etc.
Fauna GraphQL tool is an automation library that is used to easily add features such as authentication
, custom resolver (UDF)
, sorting of subgraphs
, fuzzy full-text search
, etc.
FGT works with the fauna-graphql-upload
library as well as fauna-schema-migrate
Define your GraphQL schema. @auth
will define the model that is being used as membership model. Currently supports only 1 member model. @protected
will define the rules for accessing a record.
type Comment @protected(membership: "User", rule: ["read", "write", "create"]) {
content: String!
talk: Talk!
user: User!
}
type User @auth(primary: "email") {
email: String! @unique
username: String
comments: [Comment!] @relation
}
npm i @fauna-labs/graphql-tool fauna-gql-upload --save-dev
Create a script to run the tool.
// package.json
"scripts": {
"fgu": "fgu",
"fgt": "fgt"
}
In this example I am using the fauna-graphql-upload
tool. Create a new .env
file and add your admin key.
FGU_SECRET=<your key>
Now run npm run fgt
. Notice all resources are generated in the /fauna/
file in your project directory.
Run npm run fgu
to update all resources in the cloud environment.
Features in Progress
@searchble
directive. Can be used as a full-text search as well.@sortable
directive [Priority]@geo
directive. Based on community solution. [Priority]updated_at
field and custom sortingFAQs
Fauna GraphQL tool is an automation library that is used to easily add features such as `authentication`, `custom resolver (UDF)`, `sorting of subgraphs`, `fuzzy full-text search`, etc.
The npm package @fauna-labs/graphql-tool receives a total of 0 weekly downloads. As such, @fauna-labs/graphql-tool popularity was classified as not popular.
We found that @fauna-labs/graphql-tool demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.