How to use the react-relay/classic.QL function in react-relay

To help you get started, weโ€™ve selected a few react-relay examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github meedan / check-web / src / app / relay / mutations / DeleteVersionMutation.js View on Github external
getFatQuery() {
    switch (this.props.parent_type) {
    case 'source':
      return Relay.QL`fragment on DestroyVersionPayload { deletedId, source { log, log_count } }`;
    case 'project_media':
      return Relay.QL`fragment on DestroyVersionPayload { deletedId, project_media { log, log_count, last_status, last_status_obj { id } } }`;
    default:
      return '';
    }
  }
github buildkite / frontend / app / components / build / CommentsList.js View on Github external
    viewer: () => Relay.QL`
      fragment on Viewer {
         user {
           name
         }
      }
    `,
    build: () => Relay.QL`
github meedan / check-web / src / app / relay / containers / SourceMenuRelay.js View on Github external
    source: () => Relay.QL`
      fragment on ProjectSource {
        id,
        dbid,
        permissions,
        source {
          id,
          dbid,
          permissions,
        }
      }
    `,
  },
github buildkite / frontend / app / components / member / Teams / chooser.js View on Github external
    organizationMember: () => Relay.QL`
      fragment on OrganizationMember {
        id
        user {
          id
          uuid
        }
        organization {
          id
          teams(search: $teamAddSearch, first: 10, order: RELEVANCE, user: $userSelector) @include (if: $includeSearchResults) {
            edges {
              node {
                id
                ${Team.getFragment('team')}
                permissions {
                  teamMemberCreate {
                    allowed
github buildkite / frontend / app / components / agent / Index / installation.js View on Github external
    organization: () => Relay.QL`
      fragment on Organization {
        slug
        agents(last: 1) @include(if: $isMounted) {
          count
          edges {
            node {
              name
            }
          }
        }
      }
    `
  }
github buildkite / frontend / app / mutations / OrganizationInvitationResend.js View on Github external
getMutation() {
    return Relay.QL`
      mutation {
        organizationInvitationResend
      }
    `;
  }
github NCI-GDC / portal-ui / src / packages / @ncigdc / containers / AnnotationTable.js View on Github external
    hits: () => Relay.QL`
      fragment on AnnotationConnection {
        total
        edges {
          node {
            id
            ${AnnotationTr.getFragment('node')}
          }
        }
      }
    `,
  },
github buildkite / frontend / app / components / pipeline / teams / Index / index.js View on Github external
    pipeline: () => Relay.QL`
      fragment on Pipeline {
        name
        ${Chooser.getFragment('pipeline')}
        organization {
          ${Row.getFragment('organization')}
        }
        teams(first: 500) {
          edges {
            node {
              id
              ${Row.getFragment('teamPipeline')}
            }
          }
        }
      }
    `
github mirumee / saleor / saleor / static / js / components / categoryPage / ProductPrice.js View on Github external
    availability: () => Relay.QL`
      fragment on ProductAvailabilityType {
        available,
        discount { gross },
        priceRange {
          maxPrice { gross, grossLocalized, currency },
          minPrice { gross, grossLocalized, currency }
        }
      }
    `
  }
github meedan / check-web / src / app / relay / mediaFragment.js View on Github external
import Relay from 'react-relay/classic';

const mediaFragment = Relay.QL`
  fragment on ProjectMedia {
    id,
    dbid,
    url,
    quote,
    published,
    updated_at,
    metadata,
    archived,
    relationships { sources_count, targets_count },
    relationship {
      id
      permissions
      source { id, dbid }
      source_id
      target { id, dbid }