![Namecheap Takes Down Polyfill.io Service Following Supply Chain Attack](https://cdn.sanity.io/images/cgdhsj6q/production/6af25114feaaac7179b18127c83327568ff592d1-1024x1024.webp?w=800&fit=max&auto=format)
Security News
Namecheap Takes Down Polyfill.io Service Following Supply Chain Attack
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
odl-graphql-client
Advanced tools
Readme
This helps to create a client point to fetch data from backend is built with odl-graphql
Use npm to install
npm install --save odl-graphql-client
Use yarn to install
yarn add odl-graphql-client
import ODLGraphqlClient from 'odl-graphql-client';
import {ODLGraphQLClientOptions} from 'odl-graphql-client/types'
constructor() {
const endpoint = '<your-graphql-server>';
const options : ODLGraphQLClientOptions = {authenticationToken: '<your-authentication-token>', headers: "<your-custom-header-key-value>"};
this.graphqlFetcher = new ODLGraphqlClient(endpoint, options); // options is optional
}
All methods are served with asynchronous.
Method Name | Description | Params |
---|---|---|
queryManyAsync | Support to query many record on an entity | entityName: string, queryParams: QueryParams, selectFields?: string[] - optional |
queryOneAsync | Support to query one record on an entity | entityName: string, queryParams: QueryParams, selectFields?: string[] - optional |
getByIdAsync | Support to get a record by id on an entity | entityName: string, id: string, selectFields?: string[] - optional |
countAsync | Support to count based on a query on an entity | entityName: string, query: string |
addAsync | Support to add a new record into an entity and return the new record | entityName: string, model: any, selectFields?: string[] - optional |
updateAsync | Support to update a record in an entity and return the updated record | entityName: string, id: string, model: any, selectFields?: string[] - optional |
deleteAsync | Support to delete a record in an entity | entityName: string, id: string |
Property | Type | Description |
---|---|---|
query? | string | the linq query. Please get the further information at https://github.com/StefH/System.Linq.Dynamic.Core |
include? | string | The nested entity which you want to include. You can include many entities with ',' |
orderBy? | string | The property which you want to order by, default is ASC, for contrary, just add "desc" after the prop name. Example: {orderBy: 'name desc'} |
page? | number | |
pageSize? | number |
FAQs
This helps to create a client point to fetch data from backend is built with [odl-graphql](https://github.com/hieutran3010/odl-graphql)
The npm package odl-graphql-client receives a total of 1 weekly downloads. As such, odl-graphql-client popularity was classified as not popular.
We found that odl-graphql-client 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
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.
Security News
A JavaScript library maintainer is under fire after merging a controversial PR to support legacy versions of Node.js.