translate

package
v1.0.0-alpha.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 28, 2020 License: LGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bson2Value

func Bson2Value(i interface{}) graph.Value

Bson2Value convers bson interface to graph.Value

func BsonM2Object

func BsonM2Object(m bson.M) graph.Object

BsonM2Object convers bson.M to graph.Object

func BsonMSlice2Array

func BsonMSlice2Array(ms []bson.M) graph.Array

BsonMSlice2Array converts []bson.M to graph.Array

func Query2Aggregation

func Query2Aggregation(f *graph.Field) (mongo.Pipeline, error)

Query2Aggregation translates graphql query to mongo aggregation

func Query2Sql

func Query2Sql(table string, f *graph.Field) string

Query2Sql converts a graphql query to sql

func Value2Bson

func Value2Bson(v graph.Value) interface{}

Value2Bson convers graph.Value to bson

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL