We’re rewarding the question askers & reputations are being recalculated! Read more.
4 deleted 98 characters in body
source | link

The query would not work on Sitecore 9.1 initial version.

You can use somethings like this:

query{
  search(keyword:"smart" fieldsEqual:[{name:"_fullpath", value:"/sitecore/content/*" }]){
    results{
      totalCount
    }
  }
}

It is necessary to have a fieldsEqual. fixed in JSS 11.0.1

Below \App_Config\Sitecore\Services.GraphQL you can found a sample GraphQL endpoint which suits your version.

For local development you can use this config patch to fix the Authentication, for Sitecore 9.1.

<configuration>
  <sitecore>
    <pipelines>
      <owin.cookieAuthentication.validateIdentity>
        <processor type="Sitecore.Owin.Authentication.Pipelines.CookieAuthentication.ValidateIdentity.ValidateSiteNeutralPaths, Sitecore.Owin.Authentication">
          <siteNeutralPaths hint="list">
            <!-- You could get as specific as /securepages/mysecurepage forAdjust the path if you don't have any other pages under theto /securepagesyour path.endpoint -->
            <path hint="grapql">/sitecore/api/graph/items/</path>
          </siteNeutralPaths>
        </processor>
      </owin.cookieAuthentication.validateIdentity>
    </pipelines>
  </sitecore>
</configuration>

The query would not work on Sitecore 9.1 initial version.

You can use somethings like this:

query{
  search(keyword:"smart" fieldsEqual:[{name:"_fullpath", value:"/sitecore/content/*" }]){
    results{
      totalCount
    }
  }
}

It is necessary to have a fieldsEqual. fixed in JSS 11.0.1

Below \App_Config\Sitecore\Services.GraphQL you can found a sample GraphQL endpoint which suits your version.

For local development you can use this config patch to fix the Authentication, for Sitecore 9.1.

<configuration>
  <sitecore>
    <pipelines>
      <owin.cookieAuthentication.validateIdentity>
        <processor type="Sitecore.Owin.Authentication.Pipelines.CookieAuthentication.ValidateIdentity.ValidateSiteNeutralPaths, Sitecore.Owin.Authentication">
          <siteNeutralPaths hint="list">
            <!-- You could get as specific as /securepages/mysecurepage for the path if you don't have any other pages under the /securepages path. -->
            <path hint="grapql">/sitecore/api/graph/items/</path>
          </siteNeutralPaths>
        </processor>
      </owin.cookieAuthentication.validateIdentity>
    </pipelines>
  </sitecore>
</configuration>

The query would not work on Sitecore 9.1 initial version.

You can use somethings like this:

query{
  search(keyword:"smart" fieldsEqual:[{name:"_fullpath", value:"/sitecore/content/*" }]){
    results{
      totalCount
    }
  }
}

It is necessary to have a fieldsEqual. fixed in JSS 11.0.1

Below \App_Config\Sitecore\Services.GraphQL you can found a sample GraphQL endpoint which suits your version.

For local development you can use this config patch to fix the Authentication, for Sitecore 9.1.

<configuration>
  <sitecore>
    <pipelines>
      <owin.cookieAuthentication.validateIdentity>
        <processor type="Sitecore.Owin.Authentication.Pipelines.CookieAuthentication.ValidateIdentity.ValidateSiteNeutralPaths, Sitecore.Owin.Authentication">
          <siteNeutralPaths hint="list">
            <!-- Adjust the path to your endpoint -->
            <path hint="grapql">/sitecore/api/graph/items/</path>
          </siteNeutralPaths>
        </processor>
      </owin.cookieAuthentication.validateIdentity>
    </pipelines>
  </sitecore>
</configuration>
3 added 950 characters in body
source | link

The query would not work on Sitecore 9.1 initial version.

You can use somethings like this:

query{
  search(keyword:"smart" fieldsEqual:[{name:"_fullpath", value:"/sitecore/content/*" }]){
    results{
      totalCount
    }
  }
}

It is necessary to have a fieldsEqual. fixed in JSS 11.0.1

Below \App_Config\Sitecore\Services.GraphQL you can found a sample GraphQL endpoint which suits your version.

For local development you can use this config patch to fix the Authentication, for Sitecore 9.1.

<configuration>
  <sitecore>
    <pipelines>
      <owin.cookieAuthentication.validateIdentity>
        <processor type="Sitecore.Owin.Authentication.Pipelines.CookieAuthentication.ValidateIdentity.ValidateSiteNeutralPaths, Sitecore.Owin.Authentication">
          <siteNeutralPaths hint="list">
            <!-- You could get as specific as /securepages/mysecurepage for the path if you don't have any other pages under the /securepages path. -->
            <path hint="grapql">/sitecore/api/graph/items/</path>
          </siteNeutralPaths>
        </processor>
      </owin.cookieAuthentication.validateIdentity>
    </pipelines>
  </sitecore>
</configuration>

The query would not work on Sitecore 9.1 initial version.

You can use somethings like this:

query{
  search(keyword:"smart" fieldsEqual:[{name:"_fullpath", value:"/sitecore/content/*" }]){
    results{
      totalCount
    }
  }
}

It is necessary to have a fieldsEqual. fixed in JSS 11.0.1

The query would not work on Sitecore 9.1 initial version.

You can use somethings like this:

query{
  search(keyword:"smart" fieldsEqual:[{name:"_fullpath", value:"/sitecore/content/*" }]){
    results{
      totalCount
    }
  }
}

It is necessary to have a fieldsEqual. fixed in JSS 11.0.1

Below \App_Config\Sitecore\Services.GraphQL you can found a sample GraphQL endpoint which suits your version.

For local development you can use this config patch to fix the Authentication, for Sitecore 9.1.

<configuration>
  <sitecore>
    <pipelines>
      <owin.cookieAuthentication.validateIdentity>
        <processor type="Sitecore.Owin.Authentication.Pipelines.CookieAuthentication.ValidateIdentity.ValidateSiteNeutralPaths, Sitecore.Owin.Authentication">
          <siteNeutralPaths hint="list">
            <!-- You could get as specific as /securepages/mysecurepage for the path if you don't have any other pages under the /securepages path. -->
            <path hint="grapql">/sitecore/api/graph/items/</path>
          </siteNeutralPaths>
        </processor>
      </owin.cookieAuthentication.validateIdentity>
    </pipelines>
  </sitecore>
</configuration>
2 added 37 characters in body
source | link

The query would not work on Sitecore 9.1 initial version.

You can use somethings like this:

query{
  search(keyword:"smart" fieldsEqual:[{name:"_fullpath", value:"/sitecore/content/*" }]){
    results{
      totalCount
    }
  }
}

It is necessary to have a fieldsEqual. fixed in JSS 11.0.1

The query would not work on Sitecore 9.1

You can use somethings like this:

query{
  search(keyword:"smart" fieldsEqual:[{name:"_fullpath", value:"/sitecore/content/*" }]){
    results{
      totalCount
    }
  }
}

It is necessary to have a fieldsEqual.

The query would not work on Sitecore 9.1 initial version.

You can use somethings like this:

query{
  search(keyword:"smart" fieldsEqual:[{name:"_fullpath", value:"/sitecore/content/*" }]){
    results{
      totalCount
    }
  }
}

It is necessary to have a fieldsEqual. fixed in JSS 11.0.1

1
source | link