Skip to main content
added 1 character in body
Source Link

From the looks of it, the configuration iswas not patched correctly.

The /sitecore/api/graph/items/master/… is the default JSS endpoint which has search query enabled, while the default JSS project setup does not have search query enabled (it has only Item query enabled by default).

Check your configuration in http://yourdomain/sitecore/admin/showconfig.aspx

The query must be added as part of your "angular-app" endpoint. It should look something like this

<GraphQL patch:source="Sitecore.Services.GraphQL.config">
    <endpoints patch:source="ExtendJss.config">
        <angular-appGraphQLEndpoint type="Sitecore.Services.GraphQL.Hosting.DatabaseAwareGraphQLEndpoint, Sitecore.Services.GraphQL.NetFxHost" url="/api/angular-app" resolve="true" patch:source="angular-app.config">

            <queries hint="raw:AddQuery">
                <query name="item" type="Sitecore.Services.GraphQL.Content.Queries.ItemQuery, Sitecore.Services.GraphQL.Content"/>
                <query name="sites" type="Sitecore.Services.GraphQL.Content.Queries.SiteQuery, Sitecore.Services.GraphQL.Content"/>
                <query name="templates" type="Sitecore.Services.GraphQL.Content.Queries.TemplatesQuery, Sitecore.Services.GraphQL.Content"/>
                <query name="search" type="Sitecore.Services.GraphQL.Content.Queries.SearchQuery, Sitecore.Services.GraphQL.Content"/>
            </queries>

        </angular-appGraphQLEndpoint>
    </endpoints>
</GraphQL>

From the looks of it, the configuration is not patched correctly.

The /sitecore/api/graph/items/master/… is the default JSS endpoint which has search query enabled, while the default JSS project setup does not have search query enabled (it has only Item query enabled by default).

Check your configuration in http://yourdomain/sitecore/admin/showconfig.aspx

The query must be added as part of your "angular-app" endpoint. It should look something like this

<GraphQL patch:source="Sitecore.Services.GraphQL.config">
    <endpoints patch:source="ExtendJss.config">
        <angular-appGraphQLEndpoint type="Sitecore.Services.GraphQL.Hosting.DatabaseAwareGraphQLEndpoint, Sitecore.Services.GraphQL.NetFxHost" url="/api/angular-app" resolve="true" patch:source="angular-app.config">

            <queries hint="raw:AddQuery">
                <query name="item" type="Sitecore.Services.GraphQL.Content.Queries.ItemQuery, Sitecore.Services.GraphQL.Content"/>
                <query name="sites" type="Sitecore.Services.GraphQL.Content.Queries.SiteQuery, Sitecore.Services.GraphQL.Content"/>
                <query name="templates" type="Sitecore.Services.GraphQL.Content.Queries.TemplatesQuery, Sitecore.Services.GraphQL.Content"/>
                <query name="search" type="Sitecore.Services.GraphQL.Content.Queries.SearchQuery, Sitecore.Services.GraphQL.Content"/>
            </queries>

        </angular-appGraphQLEndpoint>
    </endpoints>
</GraphQL>

From the looks of it, the configuration was not patched correctly.

The /sitecore/api/graph/items/master/… is the default JSS endpoint which has search query enabled, while the default JSS project setup does not have search query enabled (it has only Item query enabled by default).

Check your configuration in http://yourdomain/sitecore/admin/showconfig.aspx

The query must be added as part of your "angular-app" endpoint. It should look something like this

<GraphQL patch:source="Sitecore.Services.GraphQL.config">
    <endpoints patch:source="ExtendJss.config">
        <angular-appGraphQLEndpoint type="Sitecore.Services.GraphQL.Hosting.DatabaseAwareGraphQLEndpoint, Sitecore.Services.GraphQL.NetFxHost" url="/api/angular-app" resolve="true" patch:source="angular-app.config">

            <queries hint="raw:AddQuery">
                <query name="item" type="Sitecore.Services.GraphQL.Content.Queries.ItemQuery, Sitecore.Services.GraphQL.Content"/>
                <query name="sites" type="Sitecore.Services.GraphQL.Content.Queries.SiteQuery, Sitecore.Services.GraphQL.Content"/>
                <query name="templates" type="Sitecore.Services.GraphQL.Content.Queries.TemplatesQuery, Sitecore.Services.GraphQL.Content"/>
                <query name="search" type="Sitecore.Services.GraphQL.Content.Queries.SearchQuery, Sitecore.Services.GraphQL.Content"/>
            </queries>

        </angular-appGraphQLEndpoint>
    </endpoints>
</GraphQL>
added 44 characters in body
Source Link

From the looks of it, the configuration is not patched correctly.

The /sitecore/api/graph/items/master/… is the default JSS endpoint which has search query enabled, while the default JSS project setup does not have search query enabled (it has only Item query enabled by default).

Check your configuration in http://yourdomain/sitecore/admin/showconfig.aspx

The query must be added as part of youuryour "angular-app" endpoint. It should look something like this

<GraphQL patch:source="Sitecore.Services.GraphQL.config">
    <endpoints patch:source="ExtendJss.config">
        <angular-appGraphQLEndpoint type="Sitecore.Services.GraphQL.Hosting.DatabaseAwareGraphQLEndpoint, Sitecore.Services.GraphQL.NetFxHost" url="/api/angular-app" resolve="true" patch:source="angular-app.config">

            <queries hint="raw:AddQuery">
                <query name="item" type="Sitecore.Services.GraphQL.Content.Queries.ItemQuery, Sitecore.Services.GraphQL.Content"/>
                <query name="sites" type="Sitecore.Services.GraphQL.Content.Queries.SiteQuery, Sitecore.Services.GraphQL.Content"/>
                <query name="templates" type="Sitecore.Services.GraphQL.Content.Queries.TemplatesQuery, Sitecore.Services.GraphQL.Content"/>
                <query name="search" type="Sitecore.Services.GraphQL.Content.Queries.SearchQuery, Sitecore.Services.GraphQL.Content"/>
            </queries>

        </angular-appGraphQLEndpoint>
    </endpoints>
</GraphQL>

From the looks of it, the configuration is not patched correctly.

The /sitecore/api/graph/items/master/… is the default JSS endpoint which has search query enabled, while the default JSS project setup does not have search query enabled.

Check your configuration in http://yourdomain/sitecore/admin/showconfig.aspx

The query must be added as part of youur "angular-app" endpoint. It should look something like this

<GraphQL patch:source="Sitecore.Services.GraphQL.config">
    <endpoints patch:source="ExtendJss.config">
        <angular-appGraphQLEndpoint type="Sitecore.Services.GraphQL.Hosting.DatabaseAwareGraphQLEndpoint, Sitecore.Services.GraphQL.NetFxHost" url="/api/angular-app" resolve="true" patch:source="angular-app.config">

            <queries hint="raw:AddQuery">
                <query name="item" type="Sitecore.Services.GraphQL.Content.Queries.ItemQuery, Sitecore.Services.GraphQL.Content"/>
                <query name="sites" type="Sitecore.Services.GraphQL.Content.Queries.SiteQuery, Sitecore.Services.GraphQL.Content"/>
                <query name="templates" type="Sitecore.Services.GraphQL.Content.Queries.TemplatesQuery, Sitecore.Services.GraphQL.Content"/>
                <query name="search" type="Sitecore.Services.GraphQL.Content.Queries.SearchQuery, Sitecore.Services.GraphQL.Content"/>
            </queries>

        </angular-appGraphQLEndpoint>
    </endpoints>
</GraphQL>

From the looks of it, the configuration is not patched correctly.

The /sitecore/api/graph/items/master/… is the default JSS endpoint which has search query enabled, while the default JSS project setup does not have search query enabled (it has only Item query enabled by default).

Check your configuration in http://yourdomain/sitecore/admin/showconfig.aspx

The query must be added as part of your "angular-app" endpoint. It should look something like this

<GraphQL patch:source="Sitecore.Services.GraphQL.config">
    <endpoints patch:source="ExtendJss.config">
        <angular-appGraphQLEndpoint type="Sitecore.Services.GraphQL.Hosting.DatabaseAwareGraphQLEndpoint, Sitecore.Services.GraphQL.NetFxHost" url="/api/angular-app" resolve="true" patch:source="angular-app.config">

            <queries hint="raw:AddQuery">
                <query name="item" type="Sitecore.Services.GraphQL.Content.Queries.ItemQuery, Sitecore.Services.GraphQL.Content"/>
                <query name="sites" type="Sitecore.Services.GraphQL.Content.Queries.SiteQuery, Sitecore.Services.GraphQL.Content"/>
                <query name="templates" type="Sitecore.Services.GraphQL.Content.Queries.TemplatesQuery, Sitecore.Services.GraphQL.Content"/>
                <query name="search" type="Sitecore.Services.GraphQL.Content.Queries.SearchQuery, Sitecore.Services.GraphQL.Content"/>
            </queries>

        </angular-appGraphQLEndpoint>
    </endpoints>
</GraphQL>
Source Link

From the looks of it, the configuration is not patched correctly.

The /sitecore/api/graph/items/master/… is the default JSS endpoint which has search query enabled, while the default JSS project setup does not have search query enabled.

Check your configuration in http://yourdomain/sitecore/admin/showconfig.aspx

The query must be added as part of youur "angular-app" endpoint. It should look something like this

<GraphQL patch:source="Sitecore.Services.GraphQL.config">
    <endpoints patch:source="ExtendJss.config">
        <angular-appGraphQLEndpoint type="Sitecore.Services.GraphQL.Hosting.DatabaseAwareGraphQLEndpoint, Sitecore.Services.GraphQL.NetFxHost" url="/api/angular-app" resolve="true" patch:source="angular-app.config">

            <queries hint="raw:AddQuery">
                <query name="item" type="Sitecore.Services.GraphQL.Content.Queries.ItemQuery, Sitecore.Services.GraphQL.Content"/>
                <query name="sites" type="Sitecore.Services.GraphQL.Content.Queries.SiteQuery, Sitecore.Services.GraphQL.Content"/>
                <query name="templates" type="Sitecore.Services.GraphQL.Content.Queries.TemplatesQuery, Sitecore.Services.GraphQL.Content"/>
                <query name="search" type="Sitecore.Services.GraphQL.Content.Queries.SearchQuery, Sitecore.Services.GraphQL.Content"/>
            </queries>

        </angular-appGraphQLEndpoint>
    </endpoints>
</GraphQL>