import Relay from 'react-relay';

export const query = () => Relay.QL`
  query {
    organizationMember(slug: $slug)
  }
`;

export const prepareParams = (params) => {
  return {
    ...params,
    slug: [params.organization, params.organizationMember].join("/")
  };
};

import Relay from 'react-relay';

// Note: Ensure whatever variable you use as the $slug is unique and doesn't
// match any existing variables in any other queries otherwise React Relay
// Router doesn't work very well.

export const query = () => Relay.QL`
  query {
    organizationMember(slug: $organizationMemberSlug)
  }
`;

export const prepareParams = (params) => {
  return {
    ...params,
    organizationMemberSlug: [params.organization, params.organizationMember].join("/")
  };
};

Make organizationMemberSlug unique, add warning
Make organizationMemberSlug unique, add warning
