chore: replaces instances of the text Mongo with MongoDB

This commit is contained in:
Jacob Fletcher
2023-05-17 16:34:49 -04:00
parent 578e5e7e58
commit 1ceea645b6
10 changed files with 16 additions and 16 deletions

View File

@@ -79,9 +79,9 @@ export type GraphQLExtension = (
export type InitOptions = {
/** Express app for Payload to use */
express?: Express;
/** Mongo connection URL, starts with `mongo` */
/** MongoDB connection URL, starts with `mongo` */
mongoURL: string | false;
/** Extra configuration options that will be passed to Mongo */
/** Extra configuration options that will be passed to MongoDB */
mongoOptions?: ConnectOptions & {
/** Set false to disable $facet aggregation in non-supporting databases, Defaults to true */
useFacet?: boolean
@@ -124,7 +124,7 @@ export type InitOptions = {
* and then sent to the client allowing the dashboard to show accessible data and actions.
*
* If the result is `true`, the user has access.
* If the result is an object, it is interpreted as a Mongo query.
* If the result is an object, it is interpreted as a MongoDB query.
*
* @example `{ createdBy: { equals: id } }`
*

View File

@@ -22,7 +22,7 @@ export declare type PayloadRequest<U = any> = Request & {
fallbackLocale?: string;
/** Information about the collection that is being accessed
* - Configuration from payload-config.ts
* - Mongo model for this collection
* - MongoDB model for this collection
* - GraphQL type metadata
* */
collection?: Collection;

View File

@@ -23,7 +23,7 @@ import fieldToSchemaMap from './fieldToWhereInputSchemaMap';
// 1. Everything needs to be a GraphQLInputObjectType or scalar / enum
// 2. Relationships, groups, repeaters and flex content are not
// directly searchable. Instead, we need to build a chained pathname
// using dot notation so Mongo can properly search nested paths.
// using dot notation so MongoDB can properly search nested paths.
const buildWhereInputType = (name: string, fields: Field[], parentName: string): GraphQLInputObjectType => {
// This is the function that builds nested paths for all
// field types with nested paths.

View File

@@ -11,7 +11,7 @@ const connectMongoose = async (
logger: pino.Logger,
): Promise<void | any> => {
let urlToConnect = url;
let successfulConnectionMessage = 'Connected to Mongo server successfully!';
let successfulConnectionMessage = 'Connected to MongoDB server successfully!';
const connectionOptions: ConnectOptions & { useFacet: undefined } = {
autoIndex: true,
@@ -35,7 +35,7 @@ const connectMongoose = async (
});
urlToConnect = mongoMemoryServer.getUri();
successfulConnectionMessage = 'Connected to in-memory Mongo server successfully!';
successfulConnectionMessage = 'Connected to in-memory MongoDB server successfully!';
}
try {