Skip to content

Commit

Permalink
Update imports
Browse files Browse the repository at this point in the history
  • Loading branch information
robertjdominguez committed Jun 11, 2024
1 parent 62e99ae commit d53c66f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions src/_databaseDocs/_mongoDB/_09-mutate-data.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,9 @@ We can even add documentation that will be visible in the GraphiQL explorer by t

```ts title="my_subgraph/connectors/my_ts/functions.ts"
import { MongoClient } from 'MongoDB';
import { config } from 'dotenv';
import dotenv from 'dotenv';

// Load environment variables from .env.local
dotenv.config({ path: '.env.local' });
dotenv.config();

/**
* @param productData An object containing the product's data.
Expand Down
5 changes: 2 additions & 3 deletions src/_databaseDocs/_postgreSQL/_09-mutate-data.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,9 @@ We can even add documentation that will be visible in the GraphiQL explorer by t

```ts title="my_subgraph/connectors/my_ts/functions.ts"
import { Client } from 'pg';
import { config } from 'dotenv';
import dotenv from 'dotenv';

// Load environment variables from .env.local
dotenv.config({ path: '.env.local' });
dotenv.config();

/**
* @param userData An object containing the user's data.
Expand Down

0 comments on commit d53c66f

Please sign in to comment.