Skip to content

Commit

Permalink
Modified examples
Browse files Browse the repository at this point in the history
  • Loading branch information
karelklima committed Nov 22, 2023
1 parent 6859294 commit 1c372a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/basic/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const PersonSchema = {
const Persons = createLens(PersonSchema, context);

// List all persons
const persons = await Persons.find(undefined, 10);
const persons = await Persons.find({ take: 10 });
for (const person of persons) {
console.log(person.name); // string
console.log(person.birthDate); // Date
Expand Down

0 comments on commit 1c372a2

Please sign in to comment.