Skip to content

Commit 7ea7c79

Browse files
committed
add mutations
1 parent fa261a4 commit 7ea7c79

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

autoload/rails.vim

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4790,6 +4790,19 @@ let s:default_projections = {
47904790
\ "end"],
47914791
\ "type": "resolver"
47924792
\ },
4793+
\ "app/graphql/mutations/*_mutation.rb": {
4794+
\ "affinity": "mutation",
4795+
\ "template": ["Mutations::{camelcase|capitalize|colons}Mutation = GraphQL::Relay::Mutation.define do",
4796+
\ " name \"{camelcase|capitalize|colons}\"",
4797+
\ "",
4798+
\ " # return_field :return_field, return_type",
4799+
\ " # input_field :input_field, !input_type",
4800+
\ "",
4801+
\ " resolve ->(obj, input, ctx) {",
4802+
\ " }",
4803+
\ "end"],
4804+
\ "type": "mutation"
4805+
\ },
47934806
\ "app/serializers/*_serializer.rb": {
47944807
\ "template": ["class {camelcase|capitalize|colons}Serializer < ActiveModel::Serializer", "end"],
47954808
\ "type": "serializer"

0 commit comments

Comments
 (0)