o
    xi                  	   @   s   d dl mZmZmZmZmZmZmZmZm	Z	m
Z
 ddlmZmZmZmZ eddeddded	d
dedddddZedddd dd dZedddd egdZedddd egdZeddd dZe	eeegdZd S )!    )
GraphQLArgumentGraphQLEnumTypeGraphQLEnumValueGraphQLFieldGraphQLInterfaceTypeGraphQLListGraphQLNonNullGraphQLObjectTypeGraphQLSchemaGraphQLString   )getDroid
getFriendsgetHerogetHumanEpisodez)One of the films in the Star Wars Trilogy   zReleased in 1977.description   zReleased in 1980.   zReleased in 1983.)NEWHOPEEMPIREJEDI)r   values	Characterz$A character in the Star Wars Trilogyc                   C   s:   t ttddt tddt ttddt ttdddS )NzThe id of the character.r   zThe name of the character.zAThe friends of the character, or an empty list if they have none.Which movies they appear in.)idnamefriends	appearsInr   r   r   r   characterInterfaceepisodeEnum r$   r$   `/home/ubuntu/.local/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/tests/starwars/schema.py<lambda>   s"   r&   c                 G   s   t | jrtS tS N)r   r   	humanType	droidType)	character_r$   r$   r%   r&   0   s    )r   fieldsresolve_typeHumanz.A humanoid creature in the Star Wars universe.c                   C   J   t ttddt tddt ttddd dt ttddt td	dd
S )NzThe id of the human.r   zThe name of the human.z=The friends of the human, or an empty list if they have none.c                 W      t | S r'   r   )humanr+   r$   r$   r%   r&   B       <lambda>.<locals>.<lambda>r   resolverr   z1The home planet of the human, or null if unknown.)r   r   r   r    
homePlanetr!   r$   r$   r$   r%   r&   6   ,   )r   r,   
interfacesDroidz0A mechanical creature in the Star Wars universe.c                   C   r/   )NzThe id of the droid.r   zThe name of the droid.z=The friends of the droid, or an empty list if they have none.c                 W   r0   r'   r1   )droidr+   r$   r$   r%   r&   _   r3   r4   r5   r   z"The primary function of the droid.)r   r   r   r    primaryFunctionr!   r$   r$   r$   r%   r&   S   r8   Queryc                	   C   sb   t tdtdtdidd dt tdtdttdid	d dt tdtd
ttdidd ddS )NepisodeziIf omitted, returns the hero of the whole saga. If provided, returns the hero of that particular episode.)r   typec                 W   s   t |dS )Nr>   )r   getrootargsr+   r$   r$   r%   r&   y   s    r4   )rC   r6   r   zid of the humanc                 W      t |d S Nr   )r   rA   r$   r$   r%   r&          zid of the droidc                 W   rD   rE   )r   rA   r$   r$   r%   r&      rF   )heror2   r;   )r   r"   r   r#   r(   r   r   r)   r$   r$   r$   r%   r&   o   s8   
)r,   )querytypesN)graphql.typer   r   r   r   r   r   r   r	   r
   r   fixturesr   r   r   r   r#   r"   r(   r)   	queryTypeStarWarsSchemar$   r$   r$   r%   <module>   sT   0 %