original_docstring: GraphQL resolver for the profiles attribute.
docstring: GraphQL resolver for the profiles attribute.
docstring_tokens: GraphQL resolver for the profiles attribute .
code: def resolve_profiles(self, info, **kwargs):
          """GraphQL resolver for the profiles attribute."""
          resp = requests.get(settings.V2_PROFILE_ENDPOINT).json()
  
          data = json2obj(resp)
          # Query based on user_id
          user_id = kwargs.get('userId')
          if user_id:
              for profile in data:
                  if profile['user_id']['value'] == user_id:
                      return [profile]
              return None
          return data
code_tokens: def resolve_profiles ( self , info , ** kwargs ) : resp = requests . get ( settings . V2_PROFILE_ENDPOINT ) . json ( ) data = json2obj ( resp ) user_id = kwargs . get ( 'userId' ) if user_id : for profile in data : if profile [ 'user_id' ] [ 'value' ] == user_id : return [ profile ] return None return data
short_docstring: GraphQL resolver for the profiles attribute.
short_docstring_tokens: GraphQL resolver for the profiles attribute .
comment: """GraphQL resolver for the profiles attribute."""$SEP$# Query based on user_id