Skip to content
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

Add docs "sendReportsImmediately" option #4399

Closed
wants to merge 5 commits into from
Closed
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
7 changes: 6 additions & 1 deletion docs/source/api/apollo-server.md
Original file line number Diff line number Diff line change
Expand Up @@ -774,8 +774,13 @@ This converts GraphQL strings into the format that Apollo libraries expect when

Builds a schema from provided type definitions and resolvers.

The [`ApolloServer` constructor](#constructor) automatically calls this method using the `typeDefs` and `resolvers` options you provide, so in most cases you don't need to call it yourself.
* `sendReportsImmediately `: boolean

By default false, EngineReportingAgent send metrics regularly.
If sendReportsImmediately is set to true, Sends the trace report immediately.
This options is useful for stateless environments (e.g. AWS Lambda).

* `rewriteError`: (err: GraphQLError) => GraphQLError | null
This method is defined in the `graphql-tools` library and is re-exported from `apollo-server` as a convenience. [See its documentation here.](./graphql-tools/#makeexecutableschemaoptions)

## `addMockFunctionsToSchema`
Expand Down