import { params , query , types } from 'typed-graphqlify' ; async function executeGraphql ( gqlString ) { return 0 ; } const getUserQuery = { getUser : { user : params ( { id : 1 } , { id : types . number , name : types . string , bankAccount : { id : types . number , branch : types . string , } , } ) , } , } ; const gqlString = query ( getUserQuery ) ; console . log ( gqlString ) ; async function run ( ) { const result = await executeGraphql ( query ( getUserQuery ) ) ; } run ( ) ;