Skip to content

Commit

Permalink
add concrete graphql example
Browse files Browse the repository at this point in the history
  • Loading branch information
nsams committed Feb 22, 2024
1 parent ae0485f commit 968c021
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/docs/content-scope/content-website.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ export class News extends BaseEntity<News, "id"> {

### API: GraphQL API

The GraphQL API will have a scope argument (where it makes sense), as shown in the example above.
The GraphQL API will have a scope argument (where it makes sense), for the `News` example from above the API will have a `scope` argument:
```
newsList(scope: NewsContentScopeInput!, offset: Int! = 0, limit: Int! = 25, , search: String, filter: NewsFilter, sort: [NewsSort!]): PaginatedNews!
```

### Admin: Scope Selector
In the Admin you need a `<ContentScopeProvider>` and `<ContentScopeControls>` in the `MasterHeader` component.
Expand Down

0 comments on commit 968c021

Please sign in to comment.