Skip to content

Instantly share code, notes, and snippets.

@tchak
Created February 4, 2021 08:17
Show Gist options
  • Save tchak/94246323cfad98eca4edb345c14e3fa1 to your computer and use it in GitHub Desktop.
Save tchak/94246323cfad98eca4edb345c14e3fa1 to your computer and use it in GitHub Desktop.
query exportDemarche($demarcheNumber: Int!, $after: String) {
demarche(number: $demarcheNumber) {
number
dossiers(first: 100, after: $after) {
pageInfo {
hasNextPage
endCursor
}
nodes {
...DossierFragment
}
}
}
}
fragment DossierFragment on Dossier {
number
datePassageEnConstruction
dateTraitement
motivationAttachment {
...FileFragment
}
pdf {
filename
url
}
champs {
...ChampOrAnnotationFragment
}
annotations {
...ChampOrAnnotationFragment
}
messages {
...MessageFragment
}
avis {
...AvisFragment
}
demandeur {
...PersonneMoraleFragment
}
}
fragment MessageFragment on Message {
id
attachment {
...FileFragment
}
}
fragment AvisFragment on Avis {
id
attachment {
...FileFragment
}
}
fragment ChampOrAnnotationFragment on Champ {
...ChampFragment
... on RepetitionChamp {
champs {
...ChampFragment
}
}
}
fragment ChampFragment on Champ {
id
label
... on SiretChamp {
etablissement {
...PersonneMoraleFragment
}
}
... on PieceJustificativeChamp {
file {
...FileFragment
}
}
}
fragment PersonneMoraleFragment on PersonneMorale {
siret
entreprise {
attestationFiscaleAttachment {
...FileFragment
}
attestationSocialeAttachment {
...FileFragment
}
}
}
fragment FileFragment on File {
filename
checksum
url
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment