- resolvers
- queries
- mutation
- subscription
- GraphQL server with helix
- tests
- dataloader
- generate schema
- consume graphql using Relay
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export function removePropriedadesNumeradas<T extends Object>(objetoComNumero: T): Partial<T> { | |
| const objetoTratado: Partial<T> = {} | |
| const propriedades = Object.keys(objetoComNumero) as Array<keyof typeof objetoComNumero> | |
| for (let index = 0; index < propriedades.length; index++) { | |
| if (isNaN(Number(propriedades[index]))) { | |
| objetoComNumero[propriedades[index]] = propriedades[index] | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { | |
| "key": "ctrl+n", | |
| "command": "-workbench.action.files.newUntitledFile" | |
| }, | |
| { | |
| "key": "ctrl+n", | |
| "command": "explorer.newFile" | |
| }, | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- you must use this syntax to the trick work | |
| -- youre going to select a variable based on the desired field | |
| -- change the line 5 accordingly to your desired table | |
| /* SELECT * FROM OITB x */ | |
| DECLARE @ItemGroup AS VARCHAR(MAX) | |
| -- your variable from SAP becomes a SQL server variable | |
| SET @ItemGroup = '%' + /* x.ItmsGrpNam */ [%0] + '%' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| type IconName = keyof typeof Ionicons.glyphMap |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .parent { | |
| scroll-snap-type: y mandatory; | |
| overflow-y: scroll; | |
| height: 100vh; | |
| } | |
| .child { | |
| height: 100vh; | |
| scroll-snap-align: start; | |
| } |
- 1 file per type
- 1 way of resolver a given type
- 1 file per subscription
- organize by feature (User, User)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "fn jsx": { | |
| "prefix": "fntsx", | |
| "body": [ | |
| "import React from 'react'", | |
| "", | |
| "export const $1 = () => {", | |
| "\treturn (", | |
| "", | |
| "\t)", | |
| "}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CREATE extension IF NOT exists pg_cron; | |
| SELECT | |
| cron.schedule( | |
| 'webhook-15-minutes', -- name of the cron job | |
| '*/15 * * * *', -- every 15 minute | |
| $$ | |
| DELETE FROM public.posts | |
| $$ | |
| ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Function GoToFolderName {Set-Location -Path C:/some/folder/idk} | |
| Set-Alias -Name FolderName -Value GoToFolderName |
OlderNewer