Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 1 addition & 13 deletions apps/docs/content/docs/orm/prisma-client/queries/crud.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -122,21 +122,9 @@ const users = await prisma.user.findMany({
posts: { some: { published: false } },
},
});

// Filter by geometry (PostgreSQL with PostGIS)
const nearbyLocations = await prisma.location.findMany({
where: {
position: {
near: {
point: [13.4, 52.5],
maxDistance: 1000, // meters
},
},
},
});
```

See [Filtering and sorting](/orm/prisma-client/queries/filtering-and-sorting) for more examples, or [Working with geometry fields](/orm/prisma-client/special-fields-and-types/working-with-geometry-fields) for spatial queries.
See [Filtering and sorting](/orm/prisma-client/queries/filtering-and-sorting) for more examples.

### Select fields

Expand Down
Loading
Loading