codeLive: How to Work with GraphQL Wire Adapter for LWC

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 ก.ย. 2024
  • In this session we will learn how to fetch data using client-side JavaScript with GraphQL Wire Adapter for LWC. We will learn how the GraphQL Wire Adapter enables you to add filtering, sorting and pagination within your LWC JavaScript without needing Apex.

ความคิดเห็น • 4

  • @devnabeel
    @devnabeel 10 หลายเดือนก่อน +3

    It was such a nice session. Nicely explained.

  • @sandeepbg4823
    @sandeepbg4823 9 หลายเดือนก่อน +1

    Good to know the new feature. Thanks a lot.

  • @sudhirdhawan2583
    @sudhirdhawan2583 6 หลายเดือนก่อน

    How to pass record Id variable in graphql query

    • @msrivastav13
      @msrivastav13 6 หลายเดือนก่อน

      Simply use the where clause on it. Something like below
      query contacts {
      uiapi {
      query {
      Contact(orderBy: {Name: {order: DESC}}, where: {Id: {eq: "put your Id here"}}) {
      edges {
      node {
      Id
      LastModifiedDate {
      value
      }
      Name {
      value
      }
      Id {
      value
      }
      }
      }
      }
      }
      }
      }