@inrupt/solid-client
    Preparing search index...

    Function setPolicy

    • function is still experimental and subject to change, even in a non-major release.
      

      Insert the given [[Policy]] into the given [[SolidDataset]], replacing previous instances of that Policy.

      Type Parameters

      • Dataset extends Readonly<{}>

      Parameters

      • policyResource: Dataset

        The Resource that contains Access Policies.

      • policy: ThingPersisted

        The Policy to insert into the Resource.

      Returns Dataset

      A new dataset equal to the given resource, but with the given Policy.

      1.6.0