Skip to content

Commit 15a215a

Browse files
committed
📚 docs:
1 parent 973654a commit 15a215a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎README.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,15 @@ rumble also supports automatically implementing basic filtering args. Those curr
100100
const {
101101
// the input arg type, here we rename it to UserWhere
102102
inputType: UserWhere,
103-
// since drizzle wants proper instantiated filter clauses with `eq` calls and references to each field we need a transformer function which converts the object received from gql to a drizzle filter
103+
// since drizzle wants proper instantiated filter clauses with `eq` calls and references to each field
104+
// we need a transformer function which converts the object received from gql to a drizzle filter
104105
transformArgumentToQueryCondition: transformUserWhere,
105106
} = implementWhereArg({
106107
// for which table to implement this
107108
tableName: "users",
108109
});
109110
```
110-
usage of the above argument type may look like this
111+
usage of the above argument type may look like this. This query will return all users which the currently logged in user, according to our defined abilities, is allowed to see AND which match the passed filter arguments.
111112
```ts
112113
schemaBuilder.queryFields((t) => {
113114
return {

0 commit comments

Comments
 (0)