• Initialize a prisma store with the given prisma client

    The schema and the prisma client must be compatible otherwise the store will not work as expected

    The store will use the jsonld context to convert the data to jsonld

    Type Parameters

    Parameters

    • prisma: TPrisma

      The prisma client to be used

    • rootSchema: JSONSchema7

      The root schema of the data

    • primaryFields: Partial<
          Partial<
              Record<
                  string,
                  Partial<{ description: string; image: string; label: string }>,
              >,
          >,
      >

      The primary fields of the data (labels, descriptions, etc.)

    • __namedParameters: PrismaStoreOptions

    Returns PrismaDatastorePair