Skip to content

Commit

Permalink
Fixed typo in api.md
Browse files Browse the repository at this point in the history
Fixed typo in link to `data model definition`
  • Loading branch information
Tyguy160 committed Aug 3, 2019
1 parent bfdada9 commit 26737ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/photon/api.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Generated Photon API (JavaScript/TypeScript)

Photon is a type-safe database client auto-generated based on your [data model definition](../daa-modeling.md#data-model-definition) (which is a representation of your database schema). This page explains the generated API operations you have available when using Photon.
Photon is a type-safe database client auto-generated based on your [data model definition](../data-modeling.md#data-model-definition) (which is a representation of your database schema). This page explains the generated API operations you have available when using Photon.

- [Overview](#overview)
- [CRUD](#crud)
Expand Down Expand Up @@ -349,4 +349,4 @@ Unless you want to employ a specific optimization, calling `photon.connect()` is

If you need the first request to respond instantly and can't wait for the lazy connection to be established, you can explicitly call `photon.connect()` to establish a connection to the data source.

**IMPORTANT**: It is recommended to always explicitly call `photon.disconnect()` in your code. Generally the `Photon` instance disconnects automatically. However, if your program terminates but still has an unhandled promise rejection, the port will keep the connection to the data source open beyond the lifetime of your program!
**IMPORTANT**: It is recommended to always explicitly call `photon.disconnect()` in your code. Generally the `Photon` instance disconnects automatically. However, if your program terminates but still has an unhandled promise rejection, the port will keep the connection to the data source open beyond the lifetime of your program!

0 comments on commit 26737ae

Please sign in to comment.