Best JavaScript code snippet using best
mutations.ts
Source:mutations.ts
1/* tslint:disable */2/* eslint-disable */3// this is an auto generated file. This will be overwritten4export const createGenre = /* GraphQL */ `5 mutation CreateGenre(6 $input: CreateGenreInput!7 $condition: ModelGenreConditionInput8 ) {9 createGenre(input: $input, condition: $condition) {10 id11 genre12 profileID13 createdAt14 updatedAt15 }16 }17`;18export const updateGenre = /* GraphQL */ `19 mutation UpdateGenre(20 $input: UpdateGenreInput!21 $condition: ModelGenreConditionInput22 ) {23 updateGenre(input: $input, condition: $condition) {24 id25 genre26 profileID27 createdAt28 updatedAt29 }30 }31`;32export const deleteGenre = /* GraphQL */ `33 mutation DeleteGenre(34 $input: DeleteGenreInput!35 $condition: ModelGenreConditionInput36 ) {37 deleteGenre(input: $input, condition: $condition) {38 id39 genre40 profileID41 createdAt42 updatedAt43 }44 }45`;46export const createAuthor = /* GraphQL */ `47 mutation CreateAuthor(48 $input: CreateAuthorInput!49 $condition: ModelAuthorConditionInput50 ) {51 createAuthor(input: $input, condition: $condition) {52 id53 profileID54 name55 createdAt56 updatedAt57 }58 }59`;60export const updateAuthor = /* GraphQL */ `61 mutation UpdateAuthor(62 $input: UpdateAuthorInput!63 $condition: ModelAuthorConditionInput64 ) {65 updateAuthor(input: $input, condition: $condition) {66 id67 profileID68 name69 createdAt70 updatedAt71 }72 }73`;74export const deleteAuthor = /* GraphQL */ `75 mutation DeleteAuthor(76 $input: DeleteAuthorInput!77 $condition: ModelAuthorConditionInput78 ) {79 deleteAuthor(input: $input, condition: $condition) {80 id81 profileID82 name83 createdAt84 updatedAt85 }86 }87`;88export const createBook = /* GraphQL */ `89 mutation CreateBook(90 $input: CreateBookInput!91 $condition: ModelBookConditionInput92 ) {93 createBook(input: $input, condition: $condition) {94 id95 profileID96 title97 author98 imgURL99 createdAt100 updatedAt101 }102 }103`;104export const updateBook = /* GraphQL */ `105 mutation UpdateBook(106 $input: UpdateBookInput!107 $condition: ModelBookConditionInput108 ) {109 updateBook(input: $input, condition: $condition) {110 id111 profileID112 title113 author114 imgURL115 createdAt116 updatedAt117 }118 }119`;120export const deleteBook = /* GraphQL */ `121 mutation DeleteBook(122 $input: DeleteBookInput!123 $condition: ModelBookConditionInput124 ) {125 deleteBook(input: $input, condition: $condition) {126 id127 profileID128 title129 author130 imgURL131 createdAt132 updatedAt133 }134 }135`;136export const createProfile = /* GraphQL */ `137 mutation CreateProfile(138 $input: CreateProfileInput!139 $condition: ModelProfileConditionInput140 ) {141 createProfile(input: $input, condition: $condition) {142 id143 username144 nickname145 about_me146 birth_date147 latitude148 longitude149 gender150 open_to_meet151 photo_source152 createdAt153 updatedAt154 genres {155 items {156 id157 genre158 profileID159 createdAt160 updatedAt161 }162 nextToken163 }164 authors {165 items {166 id167 profileID168 name169 createdAt170 updatedAt171 }172 nextToken173 }174 books {175 items {176 id177 profileID178 title179 author180 imgURL181 createdAt182 updatedAt183 }184 nextToken185 }186 match {187 items {188 id189 matcherID190 matcheeID191 status192 matchedOn193 createdAt194 updatedAt195 matcherProfile {196 id197 username198 nickname199 about_me200 birth_date201 latitude202 longitude203 gender204 open_to_meet205 photo_source206 createdAt207 updatedAt208 }209 matcheeProfile {210 id211 username212 nickname213 about_me214 birth_date215 latitude216 longitude217 gender218 open_to_meet219 photo_source220 createdAt221 updatedAt222 }223 }224 nextToken225 }226 ChatRoomUser {227 items {228 id229 userID230 chatRoomID231 createdAt232 updatedAt233 user {234 id235 username236 nickname237 about_me238 birth_date239 latitude240 longitude241 gender242 open_to_meet243 photo_source244 createdAt245 updatedAt246 }247 chatRoom {248 id249 createdAt250 updatedAt251 }252 }253 nextToken254 }255 }256 }257`;258export const updateProfile = /* GraphQL */ `259 mutation UpdateProfile(260 $input: UpdateProfileInput!261 $condition: ModelProfileConditionInput262 ) {263 updateProfile(input: $input, condition: $condition) {264 id265 username266 nickname267 about_me268 birth_date269 latitude270 longitude271 gender272 open_to_meet273 photo_source274 createdAt275 updatedAt276 genres {277 items {278 id279 genre280 profileID281 createdAt282 updatedAt283 }284 nextToken285 }286 authors {287 items {288 id289 profileID290 name291 createdAt292 updatedAt293 }294 nextToken295 }296 books {297 items {298 id299 profileID300 title301 author302 imgURL303 createdAt304 updatedAt305 }306 nextToken307 }308 match {309 items {310 id311 matcherID312 matcheeID313 status314 matchedOn315 createdAt316 updatedAt317 matcherProfile {318 id319 username320 nickname321 about_me322 birth_date323 latitude324 longitude325 gender326 open_to_meet327 photo_source328 createdAt329 updatedAt330 }331 matcheeProfile {332 id333 username334 nickname335 about_me336 birth_date337 latitude338 longitude339 gender340 open_to_meet341 photo_source342 createdAt343 updatedAt344 }345 }346 nextToken347 }348 ChatRoomUser {349 items {350 id351 userID352 chatRoomID353 createdAt354 updatedAt355 user {356 id357 username358 nickname359 about_me360 birth_date361 latitude362 longitude363 gender364 open_to_meet365 photo_source366 createdAt367 updatedAt368 }369 chatRoom {370 id371 createdAt372 updatedAt373 }374 }375 nextToken376 }377 }378 }379`;380export const deleteProfile = /* GraphQL */ `381 mutation DeleteProfile(382 $input: DeleteProfileInput!383 $condition: ModelProfileConditionInput384 ) {385 deleteProfile(input: $input, condition: $condition) {386 id387 username388 nickname389 about_me390 birth_date391 latitude392 longitude393 gender394 open_to_meet395 photo_source396 createdAt397 updatedAt398 genres {399 items {400 id401 genre402 profileID403 createdAt404 updatedAt405 }406 nextToken407 }408 authors {409 items {410 id411 profileID412 name413 createdAt414 updatedAt415 }416 nextToken417 }418 books {419 items {420 id421 profileID422 title423 author424 imgURL425 createdAt426 updatedAt427 }428 nextToken429 }430 match {431 items {432 id433 matcherID434 matcheeID435 status436 matchedOn437 createdAt438 updatedAt439 matcherProfile {440 id441 username442 nickname443 about_me444 birth_date445 latitude446 longitude447 gender448 open_to_meet449 photo_source450 createdAt451 updatedAt452 }453 matcheeProfile {454 id455 username456 nickname457 about_me458 birth_date459 latitude460 longitude461 gender462 open_to_meet463 photo_source464 createdAt465 updatedAt466 }467 }468 nextToken469 }470 ChatRoomUser {471 items {472 id473 userID474 chatRoomID475 createdAt476 updatedAt477 user {478 id479 username480 nickname481 about_me482 birth_date483 latitude484 longitude485 gender486 open_to_meet487 photo_source488 createdAt489 updatedAt490 }491 chatRoom {492 id493 createdAt494 updatedAt495 }496 }497 nextToken498 }499 }500 }501`;502export const createMatch = /* GraphQL */ `503 mutation CreateMatch(504 $input: CreateMatchInput!505 $condition: ModelMatchConditionInput506 ) {507 createMatch(input: $input, condition: $condition) {508 id509 matcherID510 matcheeID511 status512 matchedOn513 createdAt514 updatedAt515 matcherProfile {516 id517 username518 nickname519 about_me520 birth_date521 latitude522 longitude523 gender524 open_to_meet525 photo_source526 createdAt527 updatedAt528 genres {529 items {530 id531 genre532 profileID533 createdAt534 updatedAt535 }536 nextToken537 }538 authors {539 items {540 id541 profileID542 name543 createdAt544 updatedAt545 }546 nextToken547 }548 books {549 items {550 id551 profileID552 title553 author554 imgURL555 createdAt556 updatedAt557 }558 nextToken559 }560 match {561 items {562 id563 matcherID564 matcheeID565 status566 matchedOn567 createdAt568 updatedAt569 }570 nextToken571 }572 ChatRoomUser {573 items {574 id575 userID576 chatRoomID577 createdAt578 updatedAt579 }580 nextToken581 }582 }583 matcheeProfile {584 id585 username586 nickname587 about_me588 birth_date589 latitude590 longitude591 gender592 open_to_meet593 photo_source594 createdAt595 updatedAt596 genres {597 items {598 id599 genre600 profileID601 createdAt602 updatedAt603 }604 nextToken605 }606 authors {607 items {608 id609 profileID610 name611 createdAt612 updatedAt613 }614 nextToken615 }616 books {617 items {618 id619 profileID620 title621 author622 imgURL623 createdAt624 updatedAt625 }626 nextToken627 }628 match {629 items {630 id631 matcherID632 matcheeID633 status634 matchedOn635 createdAt636 updatedAt637 }638 nextToken639 }640 ChatRoomUser {641 items {642 id643 userID644 chatRoomID645 createdAt646 updatedAt647 }648 nextToken649 }650 }651 }652 }653`;654export const updateMatch = /* GraphQL */ `655 mutation UpdateMatch(656 $input: UpdateMatchInput!657 $condition: ModelMatchConditionInput658 ) {659 updateMatch(input: $input, condition: $condition) {660 id661 matcherID662 matcheeID663 status664 matchedOn665 createdAt666 updatedAt667 matcherProfile {668 id669 username670 nickname671 about_me672 birth_date673 latitude674 longitude675 gender676 open_to_meet677 photo_source678 createdAt679 updatedAt680 genres {681 items {682 id683 genre684 profileID685 createdAt686 updatedAt687 }688 nextToken689 }690 authors {691 items {692 id693 profileID694 name695 createdAt696 updatedAt697 }698 nextToken699 }700 books {701 items {702 id703 profileID704 title705 author706 imgURL707 createdAt708 updatedAt709 }710 nextToken711 }712 match {713 items {714 id715 matcherID716 matcheeID717 status718 matchedOn719 createdAt720 updatedAt721 }722 nextToken723 }724 ChatRoomUser {725 items {726 id727 userID728 chatRoomID729 createdAt730 updatedAt731 }732 nextToken733 }734 }735 matcheeProfile {736 id737 username738 nickname739 about_me740 birth_date741 latitude742 longitude743 gender744 open_to_meet745 photo_source746 createdAt747 updatedAt748 genres {749 items {750 id751 genre752 profileID753 createdAt754 updatedAt755 }756 nextToken757 }758 authors {759 items {760 id761 profileID762 name763 createdAt764 updatedAt765 }766 nextToken767 }768 books {769 items {770 id771 profileID772 title773 author774 imgURL775 createdAt776 updatedAt777 }778 nextToken779 }780 match {781 items {782 id783 matcherID784 matcheeID785 status786 matchedOn787 createdAt788 updatedAt789 }790 nextToken791 }792 ChatRoomUser {793 items {794 id795 userID796 chatRoomID797 createdAt798 updatedAt799 }800 nextToken801 }802 }803 }804 }805`;806export const deleteMatch = /* GraphQL */ `807 mutation DeleteMatch(808 $input: DeleteMatchInput!809 $condition: ModelMatchConditionInput810 ) {811 deleteMatch(input: $input, condition: $condition) {812 id813 matcherID814 matcheeID815 status816 matchedOn817 createdAt818 updatedAt819 matcherProfile {820 id821 username822 nickname823 about_me824 birth_date825 latitude826 longitude827 gender828 open_to_meet829 photo_source830 createdAt831 updatedAt832 genres {833 items {834 id835 genre836 profileID837 createdAt838 updatedAt839 }840 nextToken841 }842 authors {843 items {844 id845 profileID846 name847 createdAt848 updatedAt849 }850 nextToken851 }852 books {853 items {854 id855 profileID856 title857 author858 imgURL859 createdAt860 updatedAt861 }862 nextToken863 }864 match {865 items {866 id867 matcherID868 matcheeID869 status870 matchedOn871 createdAt872 updatedAt873 }874 nextToken875 }876 ChatRoomUser {877 items {878 id879 userID880 chatRoomID881 createdAt882 updatedAt883 }884 nextToken885 }886 }887 matcheeProfile {888 id889 username890 nickname891 about_me892 birth_date893 latitude894 longitude895 gender896 open_to_meet897 photo_source898 createdAt899 updatedAt900 genres {901 items {902 id903 genre904 profileID905 createdAt906 updatedAt907 }908 nextToken909 }910 authors {911 items {912 id913 profileID914 name915 createdAt916 updatedAt917 }918 nextToken919 }920 books {921 items {922 id923 profileID924 title925 author926 imgURL927 createdAt928 updatedAt929 }930 nextToken931 }932 match {933 items {934 id935 matcherID936 matcheeID937 status938 matchedOn939 createdAt940 updatedAt941 }942 nextToken943 }944 ChatRoomUser {945 items {946 id947 userID948 chatRoomID949 createdAt950 updatedAt951 }952 nextToken953 }954 }955 }956 }957`;958export const createChatRoomUser = /* GraphQL */ `959 mutation CreateChatRoomUser(960 $input: CreateChatRoomUserInput!961 $condition: ModelChatRoomUserConditionInput962 ) {963 createChatRoomUser(input: $input, condition: $condition) {964 id965 userID966 chatRoomID967 createdAt968 updatedAt969 user {970 id971 username972 nickname973 about_me974 birth_date975 latitude976 longitude977 gender978 open_to_meet979 photo_source980 createdAt981 updatedAt982 genres {983 items {984 id985 genre986 profileID987 createdAt988 updatedAt989 }990 nextToken991 }992 authors {993 items {994 id995 profileID996 name997 createdAt998 updatedAt999 }1000 nextToken1001 }1002 books {1003 items {1004 id1005 profileID1006 title1007 author1008 imgURL1009 createdAt1010 updatedAt1011 }1012 nextToken1013 }1014 match {1015 items {1016 id1017 matcherID1018 matcheeID1019 status1020 matchedOn1021 createdAt1022 updatedAt1023 }1024 nextToken1025 }1026 ChatRoomUser {1027 items {1028 id1029 userID1030 chatRoomID1031 createdAt1032 updatedAt1033 }1034 nextToken1035 }1036 }1037 chatRoom {1038 id1039 createdAt1040 updatedAt1041 ChatRoomUsers {1042 items {1043 id1044 userID1045 chatRoomID1046 createdAt1047 updatedAt1048 }1049 nextToken1050 }1051 messages {1052 items {1053 id1054 createdAt1055 content1056 userID1057 chatRoomID1058 updatedAt1059 }1060 nextToken1061 }1062 }1063 }1064 }1065`;1066export const updateChatRoomUser = /* GraphQL */ `1067 mutation UpdateChatRoomUser(1068 $input: UpdateChatRoomUserInput!1069 $condition: ModelChatRoomUserConditionInput1070 ) {1071 updateChatRoomUser(input: $input, condition: $condition) {1072 id1073 userID1074 chatRoomID1075 createdAt1076 updatedAt1077 user {1078 id1079 username1080 nickname1081 about_me1082 birth_date1083 latitude1084 longitude1085 gender1086 open_to_meet1087 photo_source1088 createdAt1089 updatedAt1090 genres {1091 items {1092 id1093 genre1094 profileID1095 createdAt1096 updatedAt1097 }1098 nextToken1099 }1100 authors {1101 items {1102 id1103 profileID1104 name1105 createdAt1106 updatedAt1107 }1108 nextToken1109 }1110 books {1111 items {1112 id1113 profileID1114 title1115 author1116 imgURL1117 createdAt1118 updatedAt1119 }1120 nextToken1121 }1122 match {1123 items {1124 id1125 matcherID1126 matcheeID1127 status1128 matchedOn1129 createdAt1130 updatedAt1131 }1132 nextToken1133 }1134 ChatRoomUser {1135 items {1136 id1137 userID1138 chatRoomID1139 createdAt1140 updatedAt1141 }1142 nextToken1143 }1144 }1145 chatRoom {1146 id1147 createdAt1148 updatedAt1149 ChatRoomUsers {1150 items {1151 id1152 userID1153 chatRoomID1154 createdAt1155 updatedAt1156 }1157 nextToken1158 }1159 messages {1160 items {1161 id1162 createdAt1163 content1164 userID1165 chatRoomID1166 updatedAt1167 }1168 nextToken1169 }1170 }1171 }1172 }1173`;1174export const deleteChatRoomUser = /* GraphQL */ `1175 mutation DeleteChatRoomUser(1176 $input: DeleteChatRoomUserInput!1177 $condition: ModelChatRoomUserConditionInput1178 ) {1179 deleteChatRoomUser(input: $input, condition: $condition) {1180 id1181 userID1182 chatRoomID1183 createdAt1184 updatedAt1185 user {1186 id1187 username1188 nickname1189 about_me1190 birth_date1191 latitude1192 longitude1193 gender1194 open_to_meet1195 photo_source1196 createdAt1197 updatedAt1198 genres {1199 items {1200 id1201 genre1202 profileID1203 createdAt1204 updatedAt1205 }1206 nextToken1207 }1208 authors {1209 items {1210 id1211 profileID1212 name1213 createdAt1214 updatedAt1215 }1216 nextToken1217 }1218 books {1219 items {1220 id1221 profileID1222 title1223 author1224 imgURL1225 createdAt1226 updatedAt1227 }1228 nextToken1229 }1230 match {1231 items {1232 id1233 matcherID1234 matcheeID1235 status1236 matchedOn1237 createdAt1238 updatedAt1239 }1240 nextToken1241 }1242 ChatRoomUser {1243 items {1244 id1245 userID1246 chatRoomID1247 createdAt1248 updatedAt1249 }1250 nextToken1251 }1252 }1253 chatRoom {1254 id1255 createdAt1256 updatedAt1257 ChatRoomUsers {1258 items {1259 id1260 userID1261 chatRoomID1262 createdAt1263 updatedAt1264 }1265 nextToken1266 }1267 messages {1268 items {1269 id1270 createdAt1271 content1272 userID1273 chatRoomID1274 updatedAt1275 }1276 nextToken1277 }1278 }1279 }1280 }1281`;1282export const createChatRoom = /* GraphQL */ `1283 mutation CreateChatRoom(1284 $input: CreateChatRoomInput!1285 $condition: ModelChatRoomConditionInput1286 ) {1287 createChatRoom(input: $input, condition: $condition) {1288 id1289 createdAt1290 updatedAt1291 ChatRoomUsers {1292 items {1293 id1294 userID1295 chatRoomID1296 createdAt1297 updatedAt1298 user {1299 id1300 username1301 nickname1302 about_me1303 birth_date1304 latitude1305 longitude1306 gender1307 open_to_meet1308 photo_source1309 createdAt1310 updatedAt1311 }1312 chatRoom {1313 id1314 createdAt1315 updatedAt1316 }1317 }1318 nextToken1319 }1320 messages {1321 items {1322 id1323 createdAt1324 content1325 userID1326 chatRoomID1327 updatedAt1328 user {1329 id1330 username1331 nickname1332 about_me1333 birth_date1334 latitude1335 longitude1336 gender1337 open_to_meet1338 photo_source1339 createdAt1340 updatedAt1341 }1342 chatRoom {1343 id1344 createdAt1345 updatedAt1346 }1347 }1348 nextToken1349 }1350 }1351 }1352`;1353export const updateChatRoom = /* GraphQL */ `1354 mutation UpdateChatRoom(1355 $input: UpdateChatRoomInput!1356 $condition: ModelChatRoomConditionInput1357 ) {1358 updateChatRoom(input: $input, condition: $condition) {1359 id1360 createdAt1361 updatedAt1362 ChatRoomUsers {1363 items {1364 id1365 userID1366 chatRoomID1367 createdAt1368 updatedAt1369 user {1370 id1371 username1372 nickname1373 about_me1374 birth_date1375 latitude1376 longitude1377 gender1378 open_to_meet1379 photo_source1380 createdAt1381 updatedAt1382 }1383 chatRoom {1384 id1385 createdAt1386 updatedAt1387 }1388 }1389 nextToken1390 }1391 messages {1392 items {1393 id1394 createdAt1395 content1396 userID1397 chatRoomID1398 updatedAt1399 user {1400 id1401 username1402 nickname1403 about_me1404 birth_date1405 latitude1406 longitude1407 gender1408 open_to_meet1409 photo_source1410 createdAt1411 updatedAt1412 }1413 chatRoom {1414 id1415 createdAt1416 updatedAt1417 }1418 }1419 nextToken1420 }1421 }1422 }1423`;1424export const deleteChatRoom = /* GraphQL */ `1425 mutation DeleteChatRoom(1426 $input: DeleteChatRoomInput!1427 $condition: ModelChatRoomConditionInput1428 ) {1429 deleteChatRoom(input: $input, condition: $condition) {1430 id1431 createdAt1432 updatedAt1433 ChatRoomUsers {1434 items {1435 id1436 userID1437 chatRoomID1438 createdAt1439 updatedAt1440 user {1441 id1442 username1443 nickname1444 about_me1445 birth_date1446 latitude1447 longitude1448 gender1449 open_to_meet1450 photo_source1451 createdAt1452 updatedAt1453 }1454 chatRoom {1455 id1456 createdAt1457 updatedAt1458 }1459 }1460 nextToken1461 }1462 messages {1463 items {1464 id1465 createdAt1466 content1467 userID1468 chatRoomID1469 updatedAt1470 user {1471 id1472 username1473 nickname1474 about_me1475 birth_date1476 latitude1477 longitude1478 gender1479 open_to_meet1480 photo_source1481 createdAt1482 updatedAt1483 }1484 chatRoom {1485 id1486 createdAt1487 updatedAt1488 }1489 }1490 nextToken1491 }1492 }1493 }1494`;1495export const createMessage = /* GraphQL */ `1496 mutation CreateMessage(1497 $input: CreateMessageInput!1498 $condition: ModelMessageConditionInput1499 ) {1500 createMessage(input: $input, condition: $condition) {1501 id1502 createdAt1503 content1504 userID1505 chatRoomID1506 updatedAt1507 user {1508 id1509 username1510 nickname1511 about_me1512 birth_date1513 latitude1514 longitude1515 gender1516 open_to_meet1517 photo_source1518 createdAt1519 updatedAt1520 genres {1521 items {1522 id1523 genre1524 profileID1525 createdAt1526 updatedAt1527 }1528 nextToken1529 }1530 authors {1531 items {1532 id1533 profileID1534 name1535 createdAt1536 updatedAt1537 }1538 nextToken1539 }1540 books {1541 items {1542 id1543 profileID1544 title1545 author1546 imgURL1547 createdAt1548 updatedAt1549 }1550 nextToken1551 }1552 match {1553 items {1554 id1555 matcherID1556 matcheeID1557 status1558 matchedOn1559 createdAt1560 updatedAt1561 }1562 nextToken1563 }1564 ChatRoomUser {1565 items {1566 id1567 userID1568 chatRoomID1569 createdAt1570 updatedAt1571 }1572 nextToken1573 }1574 }1575 chatRoom {1576 id1577 createdAt1578 updatedAt1579 ChatRoomUsers {1580 items {1581 id1582 userID1583 chatRoomID1584 createdAt1585 updatedAt1586 }1587 nextToken1588 }1589 messages {1590 items {1591 id1592 createdAt1593 content1594 userID1595 chatRoomID1596 updatedAt1597 }1598 nextToken1599 }1600 }1601 }1602 }1603`;1604export const updateMessage = /* GraphQL */ `1605 mutation UpdateMessage(1606 $input: UpdateMessageInput!1607 $condition: ModelMessageConditionInput1608 ) {1609 updateMessage(input: $input, condition: $condition) {1610 id1611 createdAt1612 content1613 userID1614 chatRoomID1615 updatedAt1616 user {1617 id1618 username1619 nickname1620 about_me1621 birth_date1622 latitude1623 longitude1624 gender1625 open_to_meet1626 photo_source1627 createdAt1628 updatedAt1629 genres {1630 items {1631 id1632 genre1633 profileID1634 createdAt1635 updatedAt1636 }1637 nextToken1638 }1639 authors {1640 items {1641 id1642 profileID1643 name1644 createdAt1645 updatedAt1646 }1647 nextToken1648 }1649 books {1650 items {1651 id1652 profileID1653 title1654 author1655 imgURL1656 createdAt1657 updatedAt1658 }1659 nextToken1660 }1661 match {1662 items {1663 id1664 matcherID1665 matcheeID1666 status1667 matchedOn1668 createdAt1669 updatedAt1670 }1671 nextToken1672 }1673 ChatRoomUser {1674 items {1675 id1676 userID1677 chatRoomID1678 createdAt1679 updatedAt1680 }1681 nextToken1682 }1683 }1684 chatRoom {1685 id1686 createdAt1687 updatedAt1688 ChatRoomUsers {1689 items {1690 id1691 userID1692 chatRoomID1693 createdAt1694 updatedAt1695 }1696 nextToken1697 }1698 messages {1699 items {1700 id1701 createdAt1702 content1703 userID1704 chatRoomID1705 updatedAt1706 }1707 nextToken1708 }1709 }1710 }1711 }1712`;1713export const deleteMessage = /* GraphQL */ `1714 mutation DeleteMessage(1715 $input: DeleteMessageInput!1716 $condition: ModelMessageConditionInput1717 ) {1718 deleteMessage(input: $input, condition: $condition) {1719 id1720 createdAt1721 content1722 userID1723 chatRoomID1724 updatedAt1725 user {1726 id1727 username1728 nickname1729 about_me1730 birth_date1731 latitude1732 longitude1733 gender1734 open_to_meet1735 photo_source1736 createdAt1737 updatedAt1738 genres {1739 items {1740 id1741 genre1742 profileID1743 createdAt1744 updatedAt1745 }1746 nextToken1747 }1748 authors {1749 items {1750 id1751 profileID1752 name1753 createdAt1754 updatedAt1755 }1756 nextToken1757 }1758 books {1759 items {1760 id1761 profileID1762 title1763 author1764 imgURL1765 createdAt1766 updatedAt1767 }1768 nextToken1769 }1770 match {1771 items {1772 id1773 matcherID1774 matcheeID1775 status1776 matchedOn1777 createdAt1778 updatedAt1779 }1780 nextToken1781 }1782 ChatRoomUser {1783 items {1784 id1785 userID1786 chatRoomID1787 createdAt1788 updatedAt1789 }1790 nextToken1791 }1792 }1793 chatRoom {1794 id1795 createdAt1796 updatedAt1797 ChatRoomUsers {1798 items {1799 id1800 userID1801 chatRoomID1802 createdAt1803 updatedAt1804 }1805 nextToken1806 }1807 messages {1808 items {1809 id1810 createdAt1811 content1812 userID1813 chatRoomID1814 updatedAt1815 }1816 nextToken1817 }1818 }1819 }1820 }...
subscriptions.ts
Source:subscriptions.ts
1/* tslint:disable */2/* eslint-disable */3// this is an auto generated file. This will be overwritten4export const onCreateGenre = /* GraphQL */ `5 subscription OnCreateGenre {6 onCreateGenre {7 id8 genre9 profileID10 createdAt11 updatedAt12 }13 }14`;15export const onUpdateGenre = /* GraphQL */ `16 subscription OnUpdateGenre {17 onUpdateGenre {18 id19 genre20 profileID21 createdAt22 updatedAt23 }24 }25`;26export const onDeleteGenre = /* GraphQL */ `27 subscription OnDeleteGenre {28 onDeleteGenre {29 id30 genre31 profileID32 createdAt33 updatedAt34 }35 }36`;37export const onCreateAuthor = /* GraphQL */ `38 subscription OnCreateAuthor {39 onCreateAuthor {40 id41 profileID42 name43 createdAt44 updatedAt45 }46 }47`;48export const onUpdateAuthor = /* GraphQL */ `49 subscription OnUpdateAuthor {50 onUpdateAuthor {51 id52 profileID53 name54 createdAt55 updatedAt56 }57 }58`;59export const onDeleteAuthor = /* GraphQL */ `60 subscription OnDeleteAuthor {61 onDeleteAuthor {62 id63 profileID64 name65 createdAt66 updatedAt67 }68 }69`;70export const onCreateBook = /* GraphQL */ `71 subscription OnCreateBook {72 onCreateBook {73 id74 profileID75 title76 author77 imgURL78 createdAt79 updatedAt80 }81 }82`;83export const onUpdateBook = /* GraphQL */ `84 subscription OnUpdateBook {85 onUpdateBook {86 id87 profileID88 title89 author90 imgURL91 createdAt92 updatedAt93 }94 }95`;96export const onDeleteBook = /* GraphQL */ `97 subscription OnDeleteBook {98 onDeleteBook {99 id100 profileID101 title102 author103 imgURL104 createdAt105 updatedAt106 }107 }108`;109export const onCreateProfile = /* GraphQL */ `110 subscription OnCreateProfile {111 onCreateProfile {112 id113 username114 nickname115 about_me116 birth_date117 latitude118 longitude119 gender120 open_to_meet121 photo_source122 createdAt123 updatedAt124 genres {125 items {126 id127 genre128 profileID129 createdAt130 updatedAt131 }132 nextToken133 }134 authors {135 items {136 id137 profileID138 name139 createdAt140 updatedAt141 }142 nextToken143 }144 books {145 items {146 id147 profileID148 title149 author150 imgURL151 createdAt152 updatedAt153 }154 nextToken155 }156 match {157 items {158 id159 matcherID160 matcheeID161 status162 matchedOn163 createdAt164 updatedAt165 matcherProfile {166 id167 username168 nickname169 about_me170 birth_date171 latitude172 longitude173 gender174 open_to_meet175 photo_source176 createdAt177 updatedAt178 }179 matcheeProfile {180 id181 username182 nickname183 about_me184 birth_date185 latitude186 longitude187 gender188 open_to_meet189 photo_source190 createdAt191 updatedAt192 }193 }194 nextToken195 }196 ChatRoomUser {197 items {198 id199 userID200 chatRoomID201 createdAt202 updatedAt203 user {204 id205 username206 nickname207 about_me208 birth_date209 latitude210 longitude211 gender212 open_to_meet213 photo_source214 createdAt215 updatedAt216 }217 chatRoom {218 id219 createdAt220 updatedAt221 }222 }223 nextToken224 }225 }226 }227`;228export const onUpdateProfile = /* GraphQL */ `229 subscription OnUpdateProfile {230 onUpdateProfile {231 id232 username233 nickname234 about_me235 birth_date236 latitude237 longitude238 gender239 open_to_meet240 photo_source241 createdAt242 updatedAt243 genres {244 items {245 id246 genre247 profileID248 createdAt249 updatedAt250 }251 nextToken252 }253 authors {254 items {255 id256 profileID257 name258 createdAt259 updatedAt260 }261 nextToken262 }263 books {264 items {265 id266 profileID267 title268 author269 imgURL270 createdAt271 updatedAt272 }273 nextToken274 }275 match {276 items {277 id278 matcherID279 matcheeID280 status281 matchedOn282 createdAt283 updatedAt284 matcherProfile {285 id286 username287 nickname288 about_me289 birth_date290 latitude291 longitude292 gender293 open_to_meet294 photo_source295 createdAt296 updatedAt297 }298 matcheeProfile {299 id300 username301 nickname302 about_me303 birth_date304 latitude305 longitude306 gender307 open_to_meet308 photo_source309 createdAt310 updatedAt311 }312 }313 nextToken314 }315 ChatRoomUser {316 items {317 id318 userID319 chatRoomID320 createdAt321 updatedAt322 user {323 id324 username325 nickname326 about_me327 birth_date328 latitude329 longitude330 gender331 open_to_meet332 photo_source333 createdAt334 updatedAt335 }336 chatRoom {337 id338 createdAt339 updatedAt340 }341 }342 nextToken343 }344 }345 }346`;347export const onDeleteProfile = /* GraphQL */ `348 subscription OnDeleteProfile {349 onDeleteProfile {350 id351 username352 nickname353 about_me354 birth_date355 latitude356 longitude357 gender358 open_to_meet359 photo_source360 createdAt361 updatedAt362 genres {363 items {364 id365 genre366 profileID367 createdAt368 updatedAt369 }370 nextToken371 }372 authors {373 items {374 id375 profileID376 name377 createdAt378 updatedAt379 }380 nextToken381 }382 books {383 items {384 id385 profileID386 title387 author388 imgURL389 createdAt390 updatedAt391 }392 nextToken393 }394 match {395 items {396 id397 matcherID398 matcheeID399 status400 matchedOn401 createdAt402 updatedAt403 matcherProfile {404 id405 username406 nickname407 about_me408 birth_date409 latitude410 longitude411 gender412 open_to_meet413 photo_source414 createdAt415 updatedAt416 }417 matcheeProfile {418 id419 username420 nickname421 about_me422 birth_date423 latitude424 longitude425 gender426 open_to_meet427 photo_source428 createdAt429 updatedAt430 }431 }432 nextToken433 }434 ChatRoomUser {435 items {436 id437 userID438 chatRoomID439 createdAt440 updatedAt441 user {442 id443 username444 nickname445 about_me446 birth_date447 latitude448 longitude449 gender450 open_to_meet451 photo_source452 createdAt453 updatedAt454 }455 chatRoom {456 id457 createdAt458 updatedAt459 }460 }461 nextToken462 }463 }464 }465`;466export const onCreateMatch = /* GraphQL */ `467 subscription OnCreateMatch {468 onCreateMatch {469 id470 matcherID471 matcheeID472 status473 matchedOn474 createdAt475 updatedAt476 matcherProfile {477 id478 username479 nickname480 about_me481 birth_date482 latitude483 longitude484 gender485 open_to_meet486 photo_source487 createdAt488 updatedAt489 genres {490 items {491 id492 genre493 profileID494 createdAt495 updatedAt496 }497 nextToken498 }499 authors {500 items {501 id502 profileID503 name504 createdAt505 updatedAt506 }507 nextToken508 }509 books {510 items {511 id512 profileID513 title514 author515 imgURL516 createdAt517 updatedAt518 }519 nextToken520 }521 match {522 items {523 id524 matcherID525 matcheeID526 status527 matchedOn528 createdAt529 updatedAt530 }531 nextToken532 }533 ChatRoomUser {534 items {535 id536 userID537 chatRoomID538 createdAt539 updatedAt540 }541 nextToken542 }543 }544 matcheeProfile {545 id546 username547 nickname548 about_me549 birth_date550 latitude551 longitude552 gender553 open_to_meet554 photo_source555 createdAt556 updatedAt557 genres {558 items {559 id560 genre561 profileID562 createdAt563 updatedAt564 }565 nextToken566 }567 authors {568 items {569 id570 profileID571 name572 createdAt573 updatedAt574 }575 nextToken576 }577 books {578 items {579 id580 profileID581 title582 author583 imgURL584 createdAt585 updatedAt586 }587 nextToken588 }589 match {590 items {591 id592 matcherID593 matcheeID594 status595 matchedOn596 createdAt597 updatedAt598 }599 nextToken600 }601 ChatRoomUser {602 items {603 id604 userID605 chatRoomID606 createdAt607 updatedAt608 }609 nextToken610 }611 }612 }613 }614`;615export const onUpdateMatch = /* GraphQL */ `616 subscription OnUpdateMatch {617 onUpdateMatch {618 id619 matcherID620 matcheeID621 status622 matchedOn623 createdAt624 updatedAt625 matcherProfile {626 id627 username628 nickname629 about_me630 birth_date631 latitude632 longitude633 gender634 open_to_meet635 photo_source636 createdAt637 updatedAt638 genres {639 items {640 id641 genre642 profileID643 createdAt644 updatedAt645 }646 nextToken647 }648 authors {649 items {650 id651 profileID652 name653 createdAt654 updatedAt655 }656 nextToken657 }658 books {659 items {660 id661 profileID662 title663 author664 imgURL665 createdAt666 updatedAt667 }668 nextToken669 }670 match {671 items {672 id673 matcherID674 matcheeID675 status676 matchedOn677 createdAt678 updatedAt679 }680 nextToken681 }682 ChatRoomUser {683 items {684 id685 userID686 chatRoomID687 createdAt688 updatedAt689 }690 nextToken691 }692 }693 matcheeProfile {694 id695 username696 nickname697 about_me698 birth_date699 latitude700 longitude701 gender702 open_to_meet703 photo_source704 createdAt705 updatedAt706 genres {707 items {708 id709 genre710 profileID711 createdAt712 updatedAt713 }714 nextToken715 }716 authors {717 items {718 id719 profileID720 name721 createdAt722 updatedAt723 }724 nextToken725 }726 books {727 items {728 id729 profileID730 title731 author732 imgURL733 createdAt734 updatedAt735 }736 nextToken737 }738 match {739 items {740 id741 matcherID742 matcheeID743 status744 matchedOn745 createdAt746 updatedAt747 }748 nextToken749 }750 ChatRoomUser {751 items {752 id753 userID754 chatRoomID755 createdAt756 updatedAt757 }758 nextToken759 }760 }761 }762 }763`;764export const onDeleteMatch = /* GraphQL */ `765 subscription OnDeleteMatch {766 onDeleteMatch {767 id768 matcherID769 matcheeID770 status771 matchedOn772 createdAt773 updatedAt774 matcherProfile {775 id776 username777 nickname778 about_me779 birth_date780 latitude781 longitude782 gender783 open_to_meet784 photo_source785 createdAt786 updatedAt787 genres {788 items {789 id790 genre791 profileID792 createdAt793 updatedAt794 }795 nextToken796 }797 authors {798 items {799 id800 profileID801 name802 createdAt803 updatedAt804 }805 nextToken806 }807 books {808 items {809 id810 profileID811 title812 author813 imgURL814 createdAt815 updatedAt816 }817 nextToken818 }819 match {820 items {821 id822 matcherID823 matcheeID824 status825 matchedOn826 createdAt827 updatedAt828 }829 nextToken830 }831 ChatRoomUser {832 items {833 id834 userID835 chatRoomID836 createdAt837 updatedAt838 }839 nextToken840 }841 }842 matcheeProfile {843 id844 username845 nickname846 about_me847 birth_date848 latitude849 longitude850 gender851 open_to_meet852 photo_source853 createdAt854 updatedAt855 genres {856 items {857 id858 genre859 profileID860 createdAt861 updatedAt862 }863 nextToken864 }865 authors {866 items {867 id868 profileID869 name870 createdAt871 updatedAt872 }873 nextToken874 }875 books {876 items {877 id878 profileID879 title880 author881 imgURL882 createdAt883 updatedAt884 }885 nextToken886 }887 match {888 items {889 id890 matcherID891 matcheeID892 status893 matchedOn894 createdAt895 updatedAt896 }897 nextToken898 }899 ChatRoomUser {900 items {901 id902 userID903 chatRoomID904 createdAt905 updatedAt906 }907 nextToken908 }909 }910 }911 }912`;913export const onCreateChatRoomUser = /* GraphQL */ `914 subscription OnCreateChatRoomUser {915 onCreateChatRoomUser {916 id917 userID918 chatRoomID919 createdAt920 updatedAt921 user {922 id923 username924 nickname925 about_me926 birth_date927 latitude928 longitude929 gender930 open_to_meet931 photo_source932 createdAt933 updatedAt934 genres {935 items {936 id937 genre938 profileID939 createdAt940 updatedAt941 }942 nextToken943 }944 authors {945 items {946 id947 profileID948 name949 createdAt950 updatedAt951 }952 nextToken953 }954 books {955 items {956 id957 profileID958 title959 author960 imgURL961 createdAt962 updatedAt963 }964 nextToken965 }966 match {967 items {968 id969 matcherID970 matcheeID971 status972 matchedOn973 createdAt974 updatedAt975 }976 nextToken977 }978 ChatRoomUser {979 items {980 id981 userID982 chatRoomID983 createdAt984 updatedAt985 }986 nextToken987 }988 }989 chatRoom {990 id991 createdAt992 updatedAt993 ChatRoomUsers {994 items {995 id996 userID997 chatRoomID998 createdAt999 updatedAt1000 }1001 nextToken1002 }1003 messages {1004 items {1005 id1006 createdAt1007 content1008 userID1009 chatRoomID1010 updatedAt1011 }1012 nextToken1013 }1014 }1015 }1016 }1017`;1018export const onUpdateChatRoomUser = /* GraphQL */ `1019 subscription OnUpdateChatRoomUser {1020 onUpdateChatRoomUser {1021 id1022 userID1023 chatRoomID1024 createdAt1025 updatedAt1026 user {1027 id1028 username1029 nickname1030 about_me1031 birth_date1032 latitude1033 longitude1034 gender1035 open_to_meet1036 photo_source1037 createdAt1038 updatedAt1039 genres {1040 items {1041 id1042 genre1043 profileID1044 createdAt1045 updatedAt1046 }1047 nextToken1048 }1049 authors {1050 items {1051 id1052 profileID1053 name1054 createdAt1055 updatedAt1056 }1057 nextToken1058 }1059 books {1060 items {1061 id1062 profileID1063 title1064 author1065 imgURL1066 createdAt1067 updatedAt1068 }1069 nextToken1070 }1071 match {1072 items {1073 id1074 matcherID1075 matcheeID1076 status1077 matchedOn1078 createdAt1079 updatedAt1080 }1081 nextToken1082 }1083 ChatRoomUser {1084 items {1085 id1086 userID1087 chatRoomID1088 createdAt1089 updatedAt1090 }1091 nextToken1092 }1093 }1094 chatRoom {1095 id1096 createdAt1097 updatedAt1098 ChatRoomUsers {1099 items {1100 id1101 userID1102 chatRoomID1103 createdAt1104 updatedAt1105 }1106 nextToken1107 }1108 messages {1109 items {1110 id1111 createdAt1112 content1113 userID1114 chatRoomID1115 updatedAt1116 }1117 nextToken1118 }1119 }1120 }1121 }1122`;1123export const onDeleteChatRoomUser = /* GraphQL */ `1124 subscription OnDeleteChatRoomUser {1125 onDeleteChatRoomUser {1126 id1127 userID1128 chatRoomID1129 createdAt1130 updatedAt1131 user {1132 id1133 username1134 nickname1135 about_me1136 birth_date1137 latitude1138 longitude1139 gender1140 open_to_meet1141 photo_source1142 createdAt1143 updatedAt1144 genres {1145 items {1146 id1147 genre1148 profileID1149 createdAt1150 updatedAt1151 }1152 nextToken1153 }1154 authors {1155 items {1156 id1157 profileID1158 name1159 createdAt1160 updatedAt1161 }1162 nextToken1163 }1164 books {1165 items {1166 id1167 profileID1168 title1169 author1170 imgURL1171 createdAt1172 updatedAt1173 }1174 nextToken1175 }1176 match {1177 items {1178 id1179 matcherID1180 matcheeID1181 status1182 matchedOn1183 createdAt1184 updatedAt1185 }1186 nextToken1187 }1188 ChatRoomUser {1189 items {1190 id1191 userID1192 chatRoomID1193 createdAt1194 updatedAt1195 }1196 nextToken1197 }1198 }1199 chatRoom {1200 id1201 createdAt1202 updatedAt1203 ChatRoomUsers {1204 items {1205 id1206 userID1207 chatRoomID1208 createdAt1209 updatedAt1210 }1211 nextToken1212 }1213 messages {1214 items {1215 id1216 createdAt1217 content1218 userID1219 chatRoomID1220 updatedAt1221 }1222 nextToken1223 }1224 }1225 }1226 }1227`;1228export const onCreateChatRoom = /* GraphQL */ `1229 subscription OnCreateChatRoom {1230 onCreateChatRoom {1231 id1232 createdAt1233 updatedAt1234 ChatRoomUsers {1235 items {1236 id1237 userID1238 chatRoomID1239 createdAt1240 updatedAt1241 user {1242 id1243 username1244 nickname1245 about_me1246 birth_date1247 latitude1248 longitude1249 gender1250 open_to_meet1251 photo_source1252 createdAt1253 updatedAt1254 }1255 chatRoom {1256 id1257 createdAt1258 updatedAt1259 }1260 }1261 nextToken1262 }1263 messages {1264 items {1265 id1266 createdAt1267 content1268 userID1269 chatRoomID1270 updatedAt1271 user {1272 id1273 username1274 nickname1275 about_me1276 birth_date1277 latitude1278 longitude1279 gender1280 open_to_meet1281 photo_source1282 createdAt1283 updatedAt1284 }1285 chatRoom {1286 id1287 createdAt1288 updatedAt1289 }1290 }1291 nextToken1292 }1293 }1294 }1295`;1296export const onUpdateChatRoom = /* GraphQL */ `1297 subscription OnUpdateChatRoom {1298 onUpdateChatRoom {1299 id1300 createdAt1301 updatedAt1302 ChatRoomUsers {1303 items {1304 id1305 userID1306 chatRoomID1307 createdAt1308 updatedAt1309 user {1310 id1311 username1312 nickname1313 about_me1314 birth_date1315 latitude1316 longitude1317 gender1318 open_to_meet1319 photo_source1320 createdAt1321 updatedAt1322 }1323 chatRoom {1324 id1325 createdAt1326 updatedAt1327 }1328 }1329 nextToken1330 }1331 messages {1332 items {1333 id1334 createdAt1335 content1336 userID1337 chatRoomID1338 updatedAt1339 user {1340 id1341 username1342 nickname1343 about_me1344 birth_date1345 latitude1346 longitude1347 gender1348 open_to_meet1349 photo_source1350 createdAt1351 updatedAt1352 }1353 chatRoom {1354 id1355 createdAt1356 updatedAt1357 }1358 }1359 nextToken1360 }1361 }1362 }1363`;1364export const onDeleteChatRoom = /* GraphQL */ `1365 subscription OnDeleteChatRoom {1366 onDeleteChatRoom {1367 id1368 createdAt1369 updatedAt1370 ChatRoomUsers {1371 items {1372 id1373 userID1374 chatRoomID1375 createdAt1376 updatedAt1377 user {1378 id1379 username1380 nickname1381 about_me1382 birth_date1383 latitude1384 longitude1385 gender1386 open_to_meet1387 photo_source1388 createdAt1389 updatedAt1390 }1391 chatRoom {1392 id1393 createdAt1394 updatedAt1395 }1396 }1397 nextToken1398 }1399 messages {1400 items {1401 id1402 createdAt1403 content1404 userID1405 chatRoomID1406 updatedAt1407 user {1408 id1409 username1410 nickname1411 about_me1412 birth_date1413 latitude1414 longitude1415 gender1416 open_to_meet1417 photo_source1418 createdAt1419 updatedAt1420 }1421 chatRoom {1422 id1423 createdAt1424 updatedAt1425 }1426 }1427 nextToken1428 }1429 }1430 }1431`;1432export const onCreateMessage = /* GraphQL */ `1433 subscription OnCreateMessage {1434 onCreateMessage {1435 id1436 createdAt1437 content1438 userID1439 chatRoomID1440 updatedAt1441 user {1442 id1443 username1444 nickname1445 about_me1446 birth_date1447 latitude1448 longitude1449 gender1450 open_to_meet1451 photo_source1452 createdAt1453 updatedAt1454 genres {1455 items {1456 id1457 genre1458 profileID1459 createdAt1460 updatedAt1461 }1462 nextToken1463 }1464 authors {1465 items {1466 id1467 profileID1468 name1469 createdAt1470 updatedAt1471 }1472 nextToken1473 }1474 books {1475 items {1476 id1477 profileID1478 title1479 author1480 imgURL1481 createdAt1482 updatedAt1483 }1484 nextToken1485 }1486 match {1487 items {1488 id1489 matcherID1490 matcheeID1491 status1492 matchedOn1493 createdAt1494 updatedAt1495 }1496 nextToken1497 }1498 ChatRoomUser {1499 items {1500 id1501 userID1502 chatRoomID1503 createdAt1504 updatedAt1505 }1506 nextToken1507 }1508 }1509 chatRoom {1510 id1511 createdAt1512 updatedAt1513 ChatRoomUsers {1514 items {1515 id1516 userID1517 chatRoomID1518 createdAt1519 updatedAt1520 }1521 nextToken1522 }1523 messages {1524 items {1525 id1526 createdAt1527 content1528 userID1529 chatRoomID1530 updatedAt1531 }1532 nextToken1533 }1534 }1535 }1536 }1537`;1538export const onUpdateMessage = /* GraphQL */ `1539 subscription OnUpdateMessage {1540 onUpdateMessage {1541 id1542 createdAt1543 content1544 userID1545 chatRoomID1546 updatedAt1547 user {1548 id1549 username1550 nickname1551 about_me1552 birth_date1553 latitude1554 longitude1555 gender1556 open_to_meet1557 photo_source1558 createdAt1559 updatedAt1560 genres {1561 items {1562 id1563 genre1564 profileID1565 createdAt1566 updatedAt1567 }1568 nextToken1569 }1570 authors {1571 items {1572 id1573 profileID1574 name1575 createdAt1576 updatedAt1577 }1578 nextToken1579 }1580 books {1581 items {1582 id1583 profileID1584 title1585 author1586 imgURL1587 createdAt1588 updatedAt1589 }1590 nextToken1591 }1592 match {1593 items {1594 id1595 matcherID1596 matcheeID1597 status1598 matchedOn1599 createdAt1600 updatedAt1601 }1602 nextToken1603 }1604 ChatRoomUser {1605 items {1606 id1607 userID1608 chatRoomID1609 createdAt1610 updatedAt1611 }1612 nextToken1613 }1614 }1615 chatRoom {1616 id1617 createdAt1618 updatedAt1619 ChatRoomUsers {1620 items {1621 id1622 userID1623 chatRoomID1624 createdAt1625 updatedAt1626 }1627 nextToken1628 }1629 messages {1630 items {1631 id1632 createdAt1633 content1634 userID1635 chatRoomID1636 updatedAt1637 }1638 nextToken1639 }1640 }1641 }1642 }1643`;1644export const onDeleteMessage = /* GraphQL */ `1645 subscription OnDeleteMessage {1646 onDeleteMessage {1647 id1648 createdAt1649 content1650 userID1651 chatRoomID1652 updatedAt1653 user {1654 id1655 username1656 nickname1657 about_me1658 birth_date1659 latitude1660 longitude1661 gender1662 open_to_meet1663 photo_source1664 createdAt1665 updatedAt1666 genres {1667 items {1668 id1669 genre1670 profileID1671 createdAt1672 updatedAt1673 }1674 nextToken1675 }1676 authors {1677 items {1678 id1679 profileID1680 name1681 createdAt1682 updatedAt1683 }1684 nextToken1685 }1686 books {1687 items {1688 id1689 profileID1690 title1691 author1692 imgURL1693 createdAt1694 updatedAt1695 }1696 nextToken1697 }1698 match {1699 items {1700 id1701 matcherID1702 matcheeID1703 status1704 matchedOn1705 createdAt1706 updatedAt1707 }1708 nextToken1709 }1710 ChatRoomUser {1711 items {1712 id1713 userID1714 chatRoomID1715 createdAt1716 updatedAt1717 }1718 nextToken1719 }1720 }1721 chatRoom {1722 id1723 createdAt1724 updatedAt1725 ChatRoomUsers {1726 items {1727 id1728 userID1729 chatRoomID1730 createdAt1731 updatedAt1732 }1733 nextToken1734 }1735 messages {1736 items {1737 id1738 createdAt1739 content1740 userID1741 chatRoomID1742 updatedAt1743 }1744 nextToken1745 }1746 }1747 }1748 }...
20201213232805-highscores.js
Source:20201213232805-highscores.js
1'use strict';2module.exports = {3 up: async (queryInterface, Sequelize) => {4 await queryInterface.bulkDelete('highscores', null, { truncate: true, cascade: true, restartIdentity: true });5 const bulkHighscores = await queryInterface.bulkInsert("highscores", [6 {7 score: 100,8 playerName: "YG Entertainment",9 songId: 1,10 createdAt: new Date(),11 updatedAt: new Date()12 },13 {14 score: 90,15 playerName: "Jisoo",16 songId: 1,17 createdAt: new Date(),18 updatedAt: new Date()19 },20 {21 score: 80,22 playerName: "Jennie",23 songId: 1,24 createdAt: new Date(),25 updatedAt: new Date()26 },27 {28 score: 70,29 playerName: "Rose",30 songId: 1,31 createdAt: new Date(),32 updatedAt: new Date()33 },34 {35 score: 60,36 playerName: "Lisa",37 songId: 1,38 createdAt: new Date(),39 updatedAt: new Date()40 },41 {42 score: 100,43 playerName: "YG Entertainment",44 songId: 2,45 createdAt: new Date(),46 updatedAt: new Date()47 },48 {49 score: 90,50 playerName: "Jisoo",51 songId: 2,52 createdAt: new Date(),53 updatedAt: new Date()54 },55 {56 score: 80,57 playerName: "Jennie",58 songId: 2,59 createdAt: new Date(),60 updatedAt: new Date()61 },62 {63 score: 70,64 playerName: "Rose",65 songId: 2,66 createdAt: new Date(),67 updatedAt: new Date()68 },69 {70 score: 60,71 playerName: "Lisa",72 songId: 2,73 createdAt: new Date(),74 updatedAt: new Date()75 },76 {77 score: 0,78 playerName: "Coming Soon!",79 songId: 3,80 createdAt: new Date(),81 updatedAt: new Date()82 },83 {84 score: 0,85 playerName: "Coming Soon!",86 songId: 4,87 createdAt: new Date(),88 updatedAt: new Date()89 },90 {91 score: 100,92 playerName: "YG Entertainment",93 songId: 5,94 createdAt: new Date(),95 updatedAt: new Date()96 },97 {98 score: 90,99 playerName: "Jisoo",100 songId: 5,101 createdAt: new Date(),102 updatedAt: new Date()103 },104 {105 score: 80,106 playerName: "Jennie",107 songId: 5,108 createdAt: new Date(),109 updatedAt: new Date()110 },111 {112 score: 70,113 playerName: "Rose",114 songId: 5,115 createdAt: new Date(),116 updatedAt: new Date()117 },118 {119 score: 60,120 playerName: "Lisa",121 songId: 5,122 createdAt: new Date(),123 updatedAt: new Date()124 },125 {126 score: 100,127 playerName: "YG Entertainment",128 songId: 6,129 createdAt: new Date(),130 updatedAt: new Date()131 },132 {133 score: 90,134 playerName: "Jisoo",135 songId: 6,136 createdAt: new Date(),137 updatedAt: new Date()138 },139 {140 score: 80,141 playerName: "Jennie",142 songId: 6,143 createdAt: new Date(),144 updatedAt: new Date()145 },146 {147 score: 70,148 playerName: "Rose",149 songId: 6,150 createdAt: new Date(),151 updatedAt: new Date()152 },153 {154 score: 60,155 playerName: "Lisa",156 songId: 6,157 createdAt: new Date(),158 updatedAt: new Date()159 },160 {161 score: 0,162 playerName: "Coming Soon!",163 songId: 7,164 createdAt: new Date(),165 updatedAt: new Date()166 },167 {168 score: 0,169 playerName: "Coming Soon!",170 songId: 8,171 createdAt: new Date(),172 updatedAt: new Date()173 },174 {175 score: 0,176 playerName: "Coming Soon!",177 songId: 9,178 createdAt: new Date(),179 updatedAt: new Date()180 },181 {182 score: 100,183 playerName: "YG Entertainment",184 songId: 10,185 createdAt: new Date(),186 updatedAt: new Date()187 },188 {189 score: 90,190 playerName: "Jisoo",191 songId: 10,192 createdAt: new Date(),193 updatedAt: new Date()194 },195 {196 score: 80,197 playerName: "Jennie",198 songId: 10,199 createdAt: new Date(),200 updatedAt: new Date()201 },202 {203 score: 70,204 playerName: "Rose",205 songId: 10,206 createdAt: new Date(),207 updatedAt: new Date()208 },209 {210 score: 60,211 playerName: "Lisa",212 songId: 10,213 createdAt: new Date(),214 updatedAt: new Date()215 },216 {217 score: 0,218 playerName: "Coming Soon!",219 songId: 11,220 createdAt: new Date(),221 updatedAt: new Date()222 },223 {224 score: 0,225 playerName: "Coming Soon!",226 songId: 12,227 createdAt: new Date(),228 updatedAt: new Date()229 },230 {231 score: 0,232 playerName: "Coming Soon!",233 songId: 13,234 createdAt: new Date(),235 updatedAt: new Date()236 },237 {238 score: 0,239 playerName: "Coming Soon!",240 songId: 14,241 createdAt: new Date(),242 updatedAt: new Date()243 },244 {245 score: 100,246 playerName: "YG Entertainment",247 songId: 15,248 createdAt: new Date(),249 updatedAt: new Date()250 },251 {252 score: 90,253 playerName: "Jisoo",254 songId: 15,255 createdAt: new Date(),256 updatedAt: new Date()257 },258 {259 score: 80,260 playerName: "Jennie",261 songId: 15,262 createdAt: new Date(),263 updatedAt: new Date()264 },265 {266 score: 70,267 playerName: "Rose",268 songId: 15,269 createdAt: new Date(),270 updatedAt: new Date()271 },272 {273 score: 60,274 playerName: "Lisa",275 songId: 15,276 createdAt: new Date(),277 updatedAt: new Date()278 },279 {280 score: 0,281 playerName: "Coming Soon!",282 songId: 16,283 createdAt: new Date(),284 updatedAt: new Date()285 },286 {287 score: 0,288 playerName: "Coming Soon!",289 songId: 17,290 createdAt: new Date(),291 updatedAt: new Date()292 },293 {294 score: 100,295 playerName: "YG Entertainment",296 songId: 18,297 createdAt: new Date(),298 updatedAt: new Date()299 },300 {301 score: 90,302 playerName: "Jisoo",303 songId: 18,304 createdAt: new Date(),305 updatedAt: new Date()306 },307 {308 score: 80,309 playerName: "Jennie",310 songId: 18,311 createdAt: new Date(),312 updatedAt: new Date()313 },314 {315 score: 70,316 playerName: "Rose",317 songId: 18,318 createdAt: new Date(),319 updatedAt: new Date()320 },321 {322 score: 60,323 playerName: "Lisa",324 songId: 18,325 createdAt: new Date(),326 updatedAt: new Date()327 },328 {329 score: 0,330 playerName: "Coming Soon!",331 songId: 19,332 createdAt: new Date(),333 updatedAt: new Date()334 },335 {336 score: 0,337 playerName: "Coming Soon!",338 songId: 20,339 createdAt: new Date(),340 updatedAt: new Date()341 },342 {343 score: 0,344 playerName: "Coming Soon!",345 songId: 21,346 createdAt: new Date(),347 updatedAt: new Date()348 }349 ])350 },351 down: async (queryInterface, Sequelize) => {352 /**353 * Add commands to revert seed here.354 *355 * Example:356 * await queryInterface.bulkDelete('People', null, {});357 */358 }...
Using AI Code Generation
1var mongoose = require('mongoose');2var Schema = mongoose.Schema;3var bookSchema = new Schema({4});5var Book = mongoose.model('Book', bookSchema);6Book.findOneAndUpdate(7 { name: 'Book 1' },8 { $inc: { quantity: 1 } },9 { new: true, upsert: true },10 function (err, doc) {11 if (err) {12 console.log("Something wrong when updating data!");13 }14 console.log(doc);15 }16);17var mongoose = require('mongoose');18var Schema = mongoose.Schema;19var bookSchema = new Schema({20});21var Book = mongoose.model('Book', bookSchema);22Book.findOneAndUpdate(23 { name: 'Book 1' },24 { $inc: { quantity: 1 } },25 { new: true, upsert: true },26 function (err, doc) {27 if (err) {28 console.log("Something wrong when updating data!");29 }30 console.log(doc);31 }32);33var mongoose = require('mongoose');34var Schema = mongoose.Schema;35var bookSchema = new Schema({36});37var Book = mongoose.model('Book', bookSchema);38Book.findOneAndUpdate(39 { name: 'Book 1' },40 { $inc: { quantity: 1 } },41 { new: true, upsert: true },42 function (err, doc) {43 if (err) {44 console.log("Something wrong when updating data!");45 }46 console.log(doc);47 }48);49var mongoose = require('mongoose');50var Schema = mongoose.Schema;51var bookSchema = new Schema({52});
Using AI Code Generation
1var BestBuy = require('./bestbuy.js');2var bestbuy = new BestBuy();3bestbuy.updatedAt('1234', function(err, data) {4 if (err) {5 console.log('error: ' + err);6 } else {7 console.log('data: ' + data);8 }9});10var BestBuy = require('./bestbuy.js');11var bestbuy = new BestBuy();12bestbuy.updatedAt('1234', function(err, data) {13 if (err) {14 console.log('error: ' + err);15 } else {16 console.log('data: ' + data);17 }18});19var BestBuy = require('./bestbuy.js');20var bestbuy = new BestBuy();21bestbuy.updatedAt('1234', function(err, data) {22 if (err) {23 console.log('error: ' + err);24 } else {25 console.log('data: ' + data);26 }27});28var BestBuy = require('./bestbuy.js');29var bestbuy = new BestBuy();30bestbuy.updatedAt('1234', function(err, data) {31 if (err) {32 console.log('error: ' + err);33 } else {34 console.log('data: ' + data);35 }36});37var BestBuy = require('./bestbuy.js');38var bestbuy = new BestBuy();39bestbuy.updatedAt('1234', function(err, data) {40 if (err) {41 console.log('error: ' + err);42 } else {43 console.log('data: ' + data);44 }45});46var BestBuy = require('./bestbuy.js');47var bestbuy = new BestBuy();48bestbuy.updatedAt('1234', function(err, data) {49 if (err) {50 console.log('error: ' + err);51 } else {52 console.log('data: ' + data);53 }54});
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!