Skip to content

Commit f21a531

Browse files
svdoeverandrejpk
andauthored
Update README.md (#74)
Fixed spelling errors Co-authored-by: Andrej Kyselica <[email protected]>
1 parent 4477f49 commit f21a531

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This is a CosmosDB DataSource for the Apollo GraphQL Server. It was adapted from
44

55
## Usage
66

7-
Use by creating a new class, inheriting from `CosmsosDataSource` passing in the CosmosDb container instance (created from the CosmosDB Javascript API). Use a separate DataSource for each data type.
7+
Use by creating a new class, inheriting from `CosmosDataSource` passing in the CosmosDb container instance (created from the CosmosDB Javascript API). Use a separate DataSource for each data type.
88

99
Example:
1010

@@ -47,7 +47,7 @@ const server = new ApolloServer({
4747

4848
## Custom Queries
4949

50-
CosmosDataSource exposes a `findManyByQuery` method that accepts a ComosDB SQL query either as a string or a `SqlQuerySpec` object containing the query and a parameter collection. This can be used direclty in the resolvers, but probably better to create wrappers that hide the query details.
50+
CosmosDataSource exposes a `findManyByQuery` method that accepts a ComosDB SQL query either as a string or a `SqlQuerySpec` object containing the query and a parameter collection. This can be used directly in the resolvers, but probably better to create wrappers that hide the query details.
5151

5252
Creating a derived class with custom query methods, you can hide all of your query logic in the DataSource class:
5353

0 commit comments

Comments
 (0)