github.com/Go-GraphQL-Group/GraphQL-Service@v0.0.0-20181226133140-0967350219a7/graphql/schema.graphql (about) 1 """ 2 Information about pagination in a connection. 3 """ 4 type PageInfo { 5 """ 6 When paginating forwards, are there more items? 7 """ 8 hasNextPage: Boolean! 9 10 """ 11 When paginating backwards, are there more items? 12 """ 13 hasPreviousPage: Boolean! 14 15 """ 16 When paginating backwards, the cursor to continue. 17 """ 18 startCursor: ID! 19 20 """ 21 When paginating forwards, the cursor to continue. 22 """ 23 endCursor: ID! 24 } 25 26 """ 27 The genders of people in the Star Wars universe. 28 """ 29 enum Gender { 30 """ 31 Does not have a gender. 32 """ 33 NA 34 35 """ 36 Male. 37 """ 38 MALE 39 40 """ 41 Female. 42 """ 43 FEMALE 44 } 45 46 """ 47 The class of vehicle in the Star Wars universe. 48 """ 49 enum VehicleClass { 50 """ 51 Wheeled. 52 """ 53 WHEELED 54 55 """ 56 Repulsorcraft. 57 """ 58 REPULSOCRAFT 59 } 60 61 """ 62 A People resource is an individual person or character within the Star Wars universe. 63 """ 64 type People { 65 """ 66 The id of this person. 67 """ 68 id: ID! 69 70 """ 71 The name of this person. 72 """ 73 name: String! 74 75 """ 76 The birth year of the person, using the in-universe standard of BBY or ABY - Before the Battle of Yavin or After the Battle of Yavin. The Battle of Yavin is a battle that occurs at the end of Star Wars episode IV: A New Hope. 77 """ 78 birth_year: String 79 80 """ 81 The eye color of this person. Will be "unknown" if not known or "n/a" if the person does not have an eye. 82 """ 83 eye_color: String 84 85 """ 86 The gender of this person. Either "Male", "Female" or "unknown", "n/a" if the person does not have a gender. 87 """ 88 gender: String 89 90 """ 91 The hair color of this person. Will be "unknown" if not known or "n/a" if the person does not have hair. 92 """ 93 hair_color: String 94 95 """ 96 The height of the person in centimeters. 97 """ 98 height: String 99 100 """ 101 The mass of the person in kilograms. 102 """ 103 mass: String 104 105 """ 106 The skin color of this person. 107 """ 108 skin_color: String 109 110 """ 111 A planet resource, a planet that this person was born on or inhabits. 112 """ 113 homeworld: Planet 114 115 """ 116 An array of film resources that this person has been in. 117 """ 118 films: [Film] 119 120 """ 121 An array of specie resources that this person belongs to. 122 """ 123 species: [Specie] 124 125 """ 126 An array of starship resources that this person has piloted. 127 """ 128 starships: [Starship] 129 130 """ 131 An array of vehicle resources that this person has piloted. 132 """ 133 vehicles: [Vehicle] 134 } 135 136 """ 137 A connection to a list of items. 138 """ 139 type PeopleConnection { 140 """ 141 Information to aid in pagination. 142 """ 143 pageInfo: PageInfo! 144 145 """ 146 A list of edges. 147 """ 148 edges: [PeopleEdge!] 149 150 """ 151 A count of the total number of items in this connection, ignoring pagination. 152 """ 153 totalCount: Int! 154 } 155 156 """ 157 An edge in a connection. 158 """ 159 type PeopleEdge { 160 """ 161 The item at the end of the edge. 162 """ 163 node: People 164 165 """ 166 A cursor for use in pagination. 167 """ 168 cursor: ID! 169 } 170 171 """ 172 A Film resource is a single film. 173 """ 174 type Film { 175 """ 176 The id of this film. 177 """ 178 id: ID! 179 180 """ 181 The title of this film. 182 """ 183 title: String! 184 185 """ 186 The episode number of this film. 187 """ 188 episode_id: Int 189 190 """ 191 The opening paragraphs at the beginning of this film. 192 """ 193 opening_crawl: String 194 195 """ 196 The name of the director of this film. 197 """ 198 director: String 199 200 """ 201 The name(s) of the producer(s) of this film. Comma separated. 202 """ 203 producer: String 204 205 """ 206 The ISO 8601 date format of film release at original creator country. 207 """ 208 release_date: String 209 210 """ 211 An array of species resources that are in this film. 212 """ 213 species: [Specie] 214 215 """ 216 An array of starship resources that are in this film. 217 """ 218 starships: [Starship] 219 220 """ 221 An array of vehicle resources that are in this film. 222 """ 223 vehicles: [Vehicle] 224 225 """ 226 An array of People resources that are in this film. 227 """ 228 characters: [People] 229 230 """ 231 An array of planet resources that are in this film. 232 """ 233 planets: [Planet] 234 } 235 236 """ 237 A connection to a list of items. 238 """ 239 type FilmConnection { 240 """ 241 Information to aid in pagination. 242 """ 243 pageInfo: PageInfo! 244 245 """ 246 A list of edges. 247 """ 248 edges: [FilmEdge!] 249 250 """ 251 A count of the total number of items in this connection, ignoring pagination. 252 """ 253 totalCount: Int! 254 } 255 256 """ 257 An edge in a connection. 258 """ 259 type FilmEdge { 260 """ 261 The item at the end of the edge. 262 """ 263 node: Film 264 265 """ 266 A cursor for use in pagination. 267 """ 268 cursor: ID! 269 } 270 271 """ 272 A Starship resource is a single transport craft that has hyperdrive capability. 273 """ 274 type Starship { 275 """ 276 The id of this starship. 277 """ 278 id: ID! 279 280 """ 281 The name of this starship. The common name, such as "Death Star". 282 """ 283 name: String! 284 285 """ 286 The model or official name of this starship. Such as "T-65 X-wing" or "DS-1 Orbital Battle Station". 287 """ 288 model: String 289 290 """ 291 The class of this starship, such as "Starfighter" or "Deep Space Mobile Battlestation" 292 """ 293 starship_class: String 294 295 """ 296 The manufacturer of this starship. Comma separated if more than one. 297 """ 298 manufacturer: String 299 300 """ 301 The cost of this starship new, in galactic credits. 302 """ 303 cost_in_credits: String 304 305 """ 306 The length of this starship in meters. 307 """ 308 length: String 309 310 """ 311 The number of personnel needed to run or pilot this starship. 312 """ 313 crew: String 314 315 """ 316 The number of non-essential Vehicle this starship can transport. 317 """ 318 passengers: String 319 320 """ 321 The maximum speed of this starship in the atmosphere. "N/A" if this starship is incapable of atmospheric flight. 322 """ 323 max_atmosphering_speed: String 324 325 """ 326 The class of this starships hyperdrive. 327 """ 328 hyperdrive_rating: String 329 330 """ 331 The Maximum number of Megalights this starship can travel in a standard hour. A "Megalight" is a standard unit of distance and has never been defined before within the Star Wars universe. This figure is only really useful for measuring the difference in speed of starships. We can assume it is similar to AU, the distance between our Sun (Sol) and Earth. 332 """ 333 MGLT: String 334 335 """ 336 The maximum number of kilograms that this starship can transport. 337 """ 338 cargo_capacity: String 339 340 """ 341 The maximum length of time that this starship can provide consumables for its entire crew without having to resupply. 342 """ 343 consumables : String 344 345 """ 346 An array of film resources that this starship has appeared in. 347 """ 348 films: [Film] 349 350 """ 351 An array of People resources that this starship has been piloted by. 352 """ 353 pilots: [People] 354 } 355 356 """ 357 A connection to a list of items. 358 """ 359 type StarshipConnection { 360 """ 361 Information to aid in pagination. 362 """ 363 pageInfo: PageInfo! 364 365 """ 366 A list of edges. 367 """ 368 edges: [StarshipEdge!] 369 370 """ 371 A count of the total number of items in this connection, ignoring pagination. 372 """ 373 totalCount: Int! 374 } 375 376 """ 377 An edge in a connection. 378 """ 379 type StarshipEdge { 380 """ 381 The item at the end of the edge. 382 """ 383 node: Starship 384 385 """ 386 A cursor for use in pagination. 387 """ 388 cursor: ID! 389 } 390 391 """ 392 A Vehicle resource is a single transport craft that does not have hyperdrive capability. 393 """ 394 type Vehicle { 395 """ 396 The id of this vehicle. 397 """ 398 id: ID! 399 400 """ 401 The name of this vehicle. The common name, such as "Sand Crawler" or "Speeder bike". 402 """ 403 name: String! 404 405 """ 406 The model or official name of this vehicle. Such as "All-Terrain Attack Transport". 407 """ 408 model: String 409 410 """ 411 The class of this vehicle, such as "Wheeled" or "Repulsorcraft". 412 """ 413 vehicle_class: VehicleClass 414 415 """ 416 The manufacturer of this vehicle. Comma separated if more than one. 417 """ 418 manufacturer: String 419 420 """ 421 The length of this vehicle in meters. 422 """ 423 length: String 424 425 """ 426 The cost of this vehicle new, in Galactic Credits. 427 """ 428 cost_in_credits: String 429 430 """ 431 The number of personnel needed to run or pilot this vehicle. 432 """ 433 crew: String 434 435 """ 436 The number of non-essential Vehicle this vehicle can transport. 437 """ 438 passengers: String 439 440 """ 441 The maximum speed of this vehicle in the atmosphere. 442 """ 443 max_atmosphering_speed: String 444 445 """ 446 The maximum number of kilograms that this vehicle can transport. 447 """ 448 cargo_capacity: String 449 450 """ 451 The maximum length of time that this vehicle can provide consumables for its entire crew without having to resupply. 452 """ 453 consumables: String 454 455 """ 456 An array of film resources that this vehicle has appeared in. 457 """ 458 films: [Film] 459 460 """ 461 An array of People resources that this vehicle has been piloted by. 462 """ 463 pilots: [People] 464 } 465 466 """ 467 A connection to a list of items. 468 """ 469 type VehicleConnection { 470 """ 471 Information to aid in pagination. 472 """ 473 pageInfo: PageInfo! 474 475 """ 476 A list of edges. 477 """ 478 edges: [VehicleEdge!] 479 480 """ 481 A count of the total number of items in this connection, ignoring pagination. 482 """ 483 totalCount: Int! 484 } 485 486 """ 487 An edge in a connection. 488 """ 489 type VehicleEdge { 490 """ 491 The item at the end of the edge. 492 """ 493 node: Vehicle 494 495 """ 496 A cursor for use in pagination. 497 """ 498 cursor: ID! 499 } 500 501 """ 502 A Species resource is a type of person or character within the Star Wars Universe. 503 """ 504 type Specie { 505 """ 506 The id of this specie. 507 """ 508 id: ID! 509 510 """ 511 The name of this species. 512 """ 513 name: String! 514 515 """ 516 The classification of this species, such as "mammal" or "reptile". 517 """ 518 classification: String 519 520 """ 521 The designation of this species, such as "sentient". 522 """ 523 designation: String 524 525 """ 526 The average height of this species in centimeters. 527 """ 528 average_height: String 529 530 """ 531 The average lifespan of this species in years. 532 """ 533 average_lifespan: String 534 535 """ 536 A comma-separated string of common eye colors for this species, "none" if this species does not typically have eyes. 537 """ 538 eye_colors: String 539 540 """ 541 A comma-separated string of common hair colors for this species, "none" if this species does not typically have hair. 542 """ 543 hair_colors: String 544 545 """ 546 A comma-separated string of common skin colors for this species, "none" if this species does not typically have skin. 547 """ 548 skin_colors: String 549 550 """ 551 The language commonly spoken by this species. 552 """ 553 language: String 554 555 """ 556 A planet resource, a planet that this species originates from. 557 """ 558 homeworld: Planet 559 560 """ 561 An array of Vehicle resources that are a part of this species. 562 """ 563 Vehicle: [Vehicle] 564 565 """ 566 An array of film resources that this species has appeared in. 567 """ 568 films: [Film] 569 570 """ 571 An array of People resources that this species has appeared in. 572 """ 573 People: [People] 574 } 575 576 """ 577 A connection to a list of items. 578 """ 579 type SpecieConnection { 580 """ 581 Information to aid in pagination. 582 """ 583 pageInfo: PageInfo! 584 585 """ 586 A list of edges. 587 """ 588 edges: [SpecieEdge!] 589 590 """ 591 A count of the total number of items in this connection, ignoring pagination. 592 """ 593 totalCount: Int! 594 } 595 596 """ 597 An edge in a connection. 598 """ 599 type SpecieEdge { 600 """ 601 The item at the end of the edge. 602 """ 603 node: Specie 604 605 """ 606 A cursor for use in pagination. 607 """ 608 cursor: ID! 609 } 610 611 """ 612 A Planet resource is a large mass, planet or planetoid in the Star Wars Universe, at the time of 0 ABY. 613 """ 614 type Planet { 615 """ 616 The id of this planet. 617 """ 618 id: ID! 619 620 """ 621 The name of this planet. 622 """ 623 name: String! 624 625 """ 626 The diameter of this planet in kilometers. 627 """ 628 diameter: String 629 630 """ 631 The number of standard hours it takes for this planet to complete a single rotation on its axis. 632 """ 633 rotation_period: String 634 635 """ 636 The number of standard days it takes for this planet to complete a single orbit of its local star. 637 """ 638 orbital_period: String 639 640 """ 641 A number denoting the gravity of this planet, where "1" is normal or 1 standard G. "2" is twice or 2 standard Gs. "0.5" is half or 0.5 standard Gs. 642 """ 643 gravity: String 644 645 """ 646 The average population of sentient beings inhabiting this planet. 647 """ 648 population: String 649 650 """ 651 The climate of this planet. Comma separated if diverse. 652 """ 653 climate: String 654 655 """ 656 The terrain of this planet. Comma separated if diverse. 657 """ 658 terrain: String 659 660 """ 661 The percentage of the planet surface that is naturally occurring water or bodies of water. 662 """ 663 surface_water: String 664 665 """ 666 An array of People resources that live on this planet. 667 """ 668 residents: [People] 669 670 """ 671 An array of film resources that this planet has appeared in. 672 """ 673 films: [Film] 674 } 675 676 """ 677 A connection to a list of items. 678 """ 679 type PlanetConnection { 680 """ 681 Information to aid in pagination. 682 """ 683 pageInfo: PageInfo! 684 685 """ 686 A list of edges. 687 """ 688 edges: [PlanetEdge!] 689 690 """ 691 A count of the total number of items in this connection, ignoring pagination. 692 """ 693 totalCount: Int! 694 } 695 696 """ 697 An edge in a connection. 698 """ 699 type PlanetEdge { 700 """ 701 The item at the end of the edge. 702 """ 703 node: Planet 704 705 """ 706 A cursor for use in pagination. 707 """ 708 cursor: ID! 709 } 710 711 """ 712 The query root, from which multiple types of requests can be made. 713 """ 714 type Query { 715 """ 716 Look up a specific people by its ID. 717 """ 718 people( 719 """ 720 The ID of the entity. 721 """ 722 id: ID! 723 ): People 724 725 """ 726 Look up a specific film by its ID. 727 """ 728 film( 729 """ 730 The ID of the entity. 731 """ 732 id: ID! 733 ): Film 734 735 """ 736 Look up a specific starship by its ID. 737 """ 738 starship( 739 """ 740 The ID of the entity. 741 """ 742 id: ID! 743 ): Starship 744 745 """ 746 Look up a specific vehicle by its ID. 747 """ 748 vehicle( 749 """ 750 The ID of the entity. 751 """ 752 id: ID! 753 ): Vehicle 754 755 """ 756 Look up a specific specie by its ID. 757 """ 758 specie( 759 """ 760 The ID of the entity. 761 """ 762 id: ID! 763 ): Specie 764 765 """ 766 Look up a specific planet by its ID. 767 """ 768 planet( 769 """ 770 The ID of the entity. 771 """ 772 id: ID! 773 ): Planet 774 775 """ 776 Browse people entities. 777 """ 778 peoples ( 779 """ 780 The number of entities in the connection. 781 """ 782 first: Int 783 784 """ 785 The connection follows by. 786 """ 787 after: ID 788 ): PeopleConnection! 789 790 """ 791 Browse film entities. 792 """ 793 films ( 794 """ 795 The number of entities in the connection. 796 """ 797 first: Int 798 799 """ 800 The connection follows by. 801 """ 802 after: ID 803 ): FilmConnection! 804 805 """ 806 Browse starship entities. 807 """ 808 starships ( 809 """ 810 The number of entities in the connection. 811 """ 812 first: Int 813 814 """ 815 The connection follows by. 816 """ 817 after: ID 818 ): StarshipConnection! 819 820 """ 821 Browse vehicle entities. 822 """ 823 vehicles ( 824 """ 825 The number of entities in the connection. 826 """ 827 first: Int 828 829 """ 830 The connection follows by. 831 """ 832 after: ID 833 ): VehicleConnection! 834 835 """ 836 Browse specie entities. 837 """ 838 species ( 839 """ 840 The number of entities in the connection. 841 """ 842 first: Int 843 844 """ 845 The connection follows by. 846 """ 847 after: ID 848 ): SpecieConnection! 849 850 """ 851 Browse planet entities. 852 """ 853 planets ( 854 """ 855 The number of entities in the connection. 856 """ 857 first: Int 858 859 """ 860 The connection follows by. 861 """ 862 after: ID 863 ): PlanetConnection! 864 865 """ 866 Search for people entities matching the given query. 867 """ 868 peopleSearch ( 869 """ 870 The search field for name, in Lucene search syntax. 871 """ 872 search: String! 873 874 """ 875 The number of entities in the connection. 876 """ 877 first: Int 878 879 """ 880 The connection follows by. 881 """ 882 after: ID 883 ): PeopleConnection 884 885 """ 886 Search for film entities matching the given query. 887 """ 888 filmsSearch ( 889 """ 890 The search field for title, in Lucene search syntax. 891 """ 892 search: String! 893 894 """ 895 The number of entities in the connection. 896 """ 897 first: Int 898 899 """ 900 The connection follows by. 901 """ 902 after: ID 903 ): FilmConnection 904 905 """ 906 Search for starship entities matching the given query. 907 """ 908 starshipsSearch ( 909 """ 910 The search field for name or model, in Lucene search syntax. 911 """ 912 search: String! 913 914 """ 915 The number of entities in the connection. 916 """ 917 first: Int 918 919 """ 920 The connection follows by. 921 """ 922 after: ID 923 ): StarshipConnection 924 925 """ 926 Search for vehicle entities matching the given query. 927 """ 928 vehiclesSearch ( 929 """ 930 The search field for name or model, in Lucene search syntax. 931 """ 932 search: String! 933 934 """ 935 The number of entities in the connection. 936 """ 937 first: Int 938 939 """ 940 The connection follows by. 941 """ 942 after: ID 943 ): VehicleConnection 944 945 """ 946 Search for specie entities matching the given query. 947 """ 948 speciesSearch ( 949 """ 950 The search field for name, in Lucene search syntax. 951 """ 952 search: String! 953 954 """ 955 The number of entities in the connection. 956 """ 957 first: Int 958 959 """ 960 The connection follows by. 961 """ 962 after: ID 963 ): SpecieConnection 964 965 """ 966 Search for planet entities matching the given query. 967 """ 968 planetsSearch ( 969 """ 970 The search field for name, in Lucene search syntax. 971 """ 972 search: String! 973 974 """ 975 The number of entities in the connection. 976 """ 977 first: Int 978 979 """ 980 The connection follows by. 981 """ 982 after: ID 983 ): PlanetConnection 984 }