-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tidy up examples, and add types #8096
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
This comment was marked as resolved.
This comment was marked as resolved.
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 1f33efc:
|
97c920f
to
64dda1d
Compare
e624f68
to
aa1e005
Compare
7f1840b
to
acb6783
Compare
acb6783
to
310bca0
Compare
d622afd
to
77295b0
Compare
77295b0
to
9217a67
Compare
d3f7990
to
48fc733
Compare
export const lists: Lists = { | ||
User: list({ | ||
access: { | ||
operation: { | ||
...allOperations(allowAll), | ||
// Only allow admins to delete users |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably the example should have prevented other operations too
cc51d04
to
4697fb4
Compare
acdb77c
to
6c97757
Compare
Co-authored-by: Josh Calder <josh.calder@thinkmill.com.au>
715211f
to
2974eb7
Compare
The examples are, honestly, disorganized and incomplete.
We actively need examples that show-case how to structure your project, and examples that demonstrate and explain the complexity of different features. Some examples might show how a particular use-case might play out, that is OK, but they should be identifiably different from our feature examples.
Before this pull request, our access control and authentication examples did not showcase things like
isFilterable
orisOrderable
, nor did they showcasefilter
oritem
access control.As of this pull request, many of our examples still need plenty of work, but they are an improvement on what we had.