1.0.65 • Published 5 years ago

@begin-v/qry v1.0.65

Weekly downloads
-
License
BSD-3-Clause
Repository
github
Last release
5 years ago

Qry

Qry is library for map and query field from data

How to use Qry

import { qryQuery , qrySchema } from "@begin-v/qry"
const DATA = {
    _id: 1,
    movie_title: 'This is title',
    tags: [{
        id: 15,
        name: 'like',
        created_time: 'now()'
    }],
}

How to use Qry schema

const r = qrySchema.map(
    { id: '_id', title: 'movie_title', tags: 'tags'}, 
    DATA)

console.log(r)

How to use Qry query

const r = qryQuery.query(
    `
    {
        id
        title
        tags {
            name
        }
    }
    `, 
    DATA)

console.log(r)

License

BSD 3-Clause “New” or “Revised” License

1.0.65

5 years ago

1.0.64

5 years ago

1.0.63

5 years ago

1.0.62

5 years ago

1.0.61

5 years ago

1.0.6

5 years ago