Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Mahender Singh 39 posts 171 karma points
    Jun 19, 2022 @ 17:02
    Mahender Singh
    0

    GraphQL Custom query for Media picker URL value

    Hi Team,

    I am new to GraphQL and Umbraco. As per requirement I need to setup Multilingual Umbraco and return data using graphql. Now i am able to setup the documenttype and pages in umbraco multilingual and able to retrive the data in graphql as well.

    But the issue when I add Media Picker in documenttype which will not vary by culture. I added Images in Umbraco but when i want to retrive the data in graphql I am not able to get MediaPicker URL data because of non culture. Media Picker Id i am able to retrive.

    So could you please help me to setup either Media Picker in Umbraco or Customise graphql for this.

    Also need to understand...how Can i put the where clause in graphql for any specific peroperty.

    Please help me to setup where clause as well.

    {
      contentByAbsoluteRoute(baseUrl: "https://localhost:44378" route: "/en/products",culture: "en-us") {
        name,
        properties {
          alias,
          value
        }
        childrenForAllCultures {
          properties {
            alias,
            value
          }
        }
        children {
          name,
          properties {
            alias,
            value
          }
          children {
            name        
          }
        }
      }
    }
    
Please Sign in or register to post replies

Write your reply to:

Draft