Schema.org Adapter
    Preparing search index...

    Function create

    • Creates a new SDO Adapter instance. The optional parameter object can help you to pass settings to the SDO Adapter. Have a look to understand the possible settings and default values. The minimal setting you would like to pass is the schema.org vocabulary version you want to use.

      Parameters

      • OptionalparamObj: ParamObjCreateSdoAdapter

        An optional parameter object that describes initialization settings for the newly created SDO Adapter instance.

      Returns Promise<SDOAdapter>

      const { SOA } = require("schema-org-adapter");
      // create a new SDOAdapter instance with the latest version of schema.org
      const mySdoAdapter = await SOA.create({schemaVersion: "latest"});