Skip to content

How to set always atribute for Custom Field? #907

Answered by PayteR
PayteR asked this question in Q&A
Discussion options

You must be logged in to vote

No, i asking about how to retreive always column (field in this context) from database so i can use it in custom field https://github.com/rebing/graphql-laravel#custom-field . I think i got it, it's possible to set always attribute in CustomField

class CustomField extends Field
{
    protected $attributes = [
        'name' => 'CustomField',
        'description' => '',
        'always' => ['custom_column'],
    ];

Closing, thx anyway

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by PayteR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants