archive/v2/example/example.js
function (source, args, context, info) {
  // console.log(this.utils.getRootFieldDef(info, '_tableName'))

  let typeName = this.utils.getReturnTypeName(info)
  let db = this.globals.db.main
  let config = db.tables[typeName]
  let cursor = db.cursor

  return cursor.db(config.db).table(config.table).run()
}
function (source, args, context, info) {
  // console.log(this.utils.getRootFieldDef(info, '_tableName'))

  let typeName = this.utils.getReturnTypeName(info)
  let db = this.globals.db.main
  let config = db.tables[typeName]
  let cursor = db.cursor

  return cursor.db(config.db).table(config.table).run()
}
function ( source , args , context , info ) { // console.log(this.utils.getRootFieldDef(info, '_tableName')) let typeName = this . utils . getReturnTypeName ( info ) let db = this . globals . db . main let config = db . tables [ typeName ] let cursor = db . cursor return cursor . db ( config . db ) . table ( config . table ) . run ( ) }
get user list
get user list