Skip to content
Graffle is a work in progress. Learn more.

Default

This example shows the default output behavior.

ts
import { 
Graffle
} from './graffle/__.js'
const
pokemon
=
Graffle
.
create
()
const
pokemons
= await
pokemon
.
query
.
pokemons
({
name
: true })
console.log(
pokemons
)

Outputs

txt
[
  { name: 'Pikachu' },
  { name: 'Charizard' },
  { name: 'Squirtle' },
  { name: 'Bulbasaur' },
  { name: 'Caterpie' },
  { name: 'Weedle' }
]

Released under the MIT License.