import { query as q } from 'faunadb' ; import { Index , BiotaIndexName } from '~/factory/constructors/index' ; import { BiotaCollectionName } from '~/factory/constructors/collection' ; export const users__by__auth_account = Index ( { name : BiotaIndexName ( 'users__by__auth_account' ) , source : { collection : q . Collection ( BiotaCollectionName ( 'users' ) ) , } , terms : [ { field : [ 'data' , '_auth' , 'accounts' , 'provider' ] , } , { field : [ 'data' , '_auth' , 'accounts' , 'id' ] , } , ] , unique : true , } ) ;